iOS: Stop forcing AVAudioSessionCategoryOptionDefaultToSpeaker.

This is being forced when ma_ios_session_category_default is specified.
This commit is contained in:
David Reid
2022-08-18 11:13:31 +10:00
parent 8f7943d828
commit 334ed4fee6
+2
View File
@@ -33506,9 +33506,11 @@ static ma_result ma_context_init__coreaudio(ma_context* pContext, const ma_conte
I'm going to use trial and error to determine our default session category. First we'll try PlayAndRecord. If that fails I'm going to use trial and error to determine our default session category. First we'll try PlayAndRecord. If that fails
we'll try Playback and if that fails we'll try record. If all of these fail we'll just not set the category. we'll try Playback and if that fails we'll try record. If all of these fail we'll just not set the category.
*/ */
#if 0
#if !defined(MA_APPLE_TV) && !defined(MA_APPLE_WATCH) #if !defined(MA_APPLE_TV) && !defined(MA_APPLE_WATCH)
options |= AVAudioSessionCategoryOptionDefaultToSpeaker; options |= AVAudioSessionCategoryOptionDefaultToSpeaker;
#endif #endif
#endif
if ([pAudioSession setCategory: AVAudioSessionCategoryPlayAndRecord withOptions:options error:nil]) { if ([pAudioSession setCategory: AVAudioSessionCategoryPlayAndRecord withOptions:options error:nil]) {
/* Using PlayAndRecord */ /* Using PlayAndRecord */