From 334ed4fee6cfa298113bc4c6d223913bf2eab9d9 Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 18 Aug 2022 11:13:31 +1000 Subject: [PATCH] iOS: Stop forcing AVAudioSessionCategoryOptionDefaultToSpeaker. This is being forced when ma_ios_session_category_default is specified. --- miniaudio.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miniaudio.h b/miniaudio.h index dd874f95..bae4598f 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -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 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) options |= AVAudioSessionCategoryOptionDefaultToSpeaker; #endif +#endif if ([pAudioSession setCategory: AVAudioSessionCategoryPlayAndRecord withOptions:options error:nil]) { /* Using PlayAndRecord */