Use NSString* instead of AVAudioSessionCategory

[CODEREVIEW] [at]peter.sauerbrei


#ROBOMERGE-SOURCE: CL 8293583 via CL 8293585 via CL 8353679
#ROBOMERGE-BOT: (v401-8057353)

[CL 8353872 by michael kirzinger in Main branch]
This commit is contained in:
michael kirzinger
2019-08-27 17:19:11 -04:00
parent a54ba91c44
commit 0cc80f7f17

View File

@@ -617,7 +617,7 @@ static IOSAppDelegate* CachedDelegate = nil;
self.bAudioActive = bActive;
// get the category and settings to use
AVAudioSessionCategory Category = [self IsFeatureActive:EAudioFeature::DoNotMixWithOthers] ? AVAudioSessionCategorySoloAmbient : AVAudioSessionCategoryAmbient;
NSString* Category = [self IsFeatureActive:EAudioFeature::DoNotMixWithOthers] ? AVAudioSessionCategorySoloAmbient : AVAudioSessionCategoryAmbient;
NSString* Mode = AVAudioSessionModeDefault;
AVAudioSessionCategoryOptions Options = 0;
if (self.bAudioActive || [self IsBackgroundAudioPlaying] || [self IsFeatureActive:EAudioFeature::BackgroundAudio])