Override default SDL audio ducking option

This commit is contained in:
Bogdan Seniuc authored and Cameron Gutman committed 2024-12-20 15:46:19 -06:00
1 parent db9a4ab7c2
commit da47035525
1 file changed
+3
+3
View File
@@ -234,6 +234,9 @@ int ArInit(int audioConfiguration, POPUS_MULTISTREAM_CONFIGURATION opusConfig, v
// Start playback
SDL_PauseAudioDevice(audioDevice, 0);
// Disable lowering volume of other audio streams (SDL sets AVAudioSessionCategoryOptionDuckOthers by default)
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback withOptions:AVAudioSessionCategoryOptionMixWithOthers error:nil];
return 0;
}