|
@@ -420,7 +420,8 @@ static bool UpdateAudioSession(SDL_AudioDevice *device, bool open, bool allow_pl
|
|
|
|
|
|
hint = SDL_GetHint(SDL_HINT_AUDIO_CATEGORY);
|
|
hint = SDL_GetHint(SDL_HINT_AUDIO_CATEGORY);
|
|
if (hint) {
|
|
if (hint) {
|
|
- if (SDL_strcasecmp(hint, "AVAudioSessionCategoryAmbient") == 0) {
|
|
|
|
|
|
+ if (SDL_strcasecmp(hint, "AVAudioSessionCategoryAmbient") == 0 ||
|
|
|
|
+ SDL_strcasecmp(hint, "ambient") == 0) {
|
|
category = AVAudioSessionCategoryAmbient;
|
|
category = AVAudioSessionCategoryAmbient;
|
|
} else if (SDL_strcasecmp(hint, "AVAudioSessionCategorySoloAmbient") == 0) {
|
|
} else if (SDL_strcasecmp(hint, "AVAudioSessionCategorySoloAmbient") == 0) {
|
|
category = AVAudioSessionCategorySoloAmbient;
|
|
category = AVAudioSessionCategorySoloAmbient;
|