Commit 82d80992 authored by George Corney's avatar George Corney

Add defined(MA_APPLE_MOBILE) guard around AVAudioSessionCategory code

parent a59682b9
...@@ -20744,6 +20744,7 @@ ma_result ma_context_uninit__coreaudio(ma_context* pContext) ...@@ -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 ...@@ -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)
{ {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment