Merge pull request #115 from haxiomic/dev

Add defined(MA_APPLE_MOBILE) guard around AVAudioSessionCategory code
This commit is contained in:
David Reid
2019-12-27 21:24:30 +10:00
committed by GitHub
+2
View File
@@ -20744,6 +20744,7 @@ ma_result ma_context_uninit__coreaudio(ma_context* pContext)
return MA_SUCCESS; return MA_SUCCESS;
} }
#if defined(MA_APPLE_MOBILE)
static AVAudioSessionCategory ma_to_AVAudioSessionCategory(ma_ios_session_category category) static AVAudioSessionCategory ma_to_AVAudioSessionCategory(ma_ios_session_category category)
{ {
/* The "default" and "none" categories are treated different and should not be used as an input into this function. */ /* The "default" and "none" categories are treated different and should not be used as an input into this function. */
@@ -20762,6 +20763,7 @@ static AVAudioSessionCategory ma_to_AVAudioSessionCategory(ma_ios_session_catego
default: return AVAudioSessionCategoryAmbient; default: return AVAudioSessionCategoryAmbient;
} }
} }
#endif
ma_result ma_context_init__coreaudio(const ma_context_config* pConfig, ma_context* pContext) ma_result ma_context_init__coreaudio(const ma_context_config* pConfig, ma_context* pContext)
{ {