mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 16:24:04 +02:00
Merge pull request #115 from haxiomic/dev
Add defined(MA_APPLE_MOBILE) guard around AVAudioSessionCategory code
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user