From 698ada93e6797bd2210191328f6166de33fd2fab Mon Sep 17 00:00:00 2001 From: David Reid Date: Fri, 3 Jul 2020 12:48:43 +1000 Subject: [PATCH] Core Audio: Fix compilation errors on the iOS build. --- miniaudio.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index fe78e9e7..cddfc719 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -1,6 +1,6 @@ /* Audio playback and capture library. Choice of public domain or MIT-0. See license statements at the end of this file. -miniaudio - v0.10.11 - 28-06-2020 +miniaudio - v0.10.12 - TBD David Reid - davidreidsoftware@gmail.com @@ -1372,7 +1372,7 @@ extern "C" { #define MA_VERSION_MAJOR 0 #define MA_VERSION_MINOR 10 -#define MA_VERSION_REVISION 11 +#define MA_VERSION_REVISION 12 #define MA_VERSION_STRING MA_XSTRINGIFY(MA_VERSION_MAJOR) "." MA_XSTRINGIFY(MA_VERSION_MINOR) "." MA_XSTRINGIFY(MA_VERSION_REVISION) #if defined(_MSC_VER) && !defined(__clang__) @@ -25090,7 +25090,9 @@ static ma_result ma_context_uninit__coreaudio(ma_context* pContext) ma_dlclose(pContext, pContext->coreaudio.hCoreFoundation); #endif - ma_context__init_device_tracking__coreaudio(pContext); +#if !defined(MA_APPLE_MOBILE) + ma_context__uninit_device_tracking__coreaudio(pContext); +#endif (void)pContext; return MA_SUCCESS; @@ -25276,6 +25278,7 @@ static ma_result ma_context_init__coreaudio(const ma_context_config* pConfig, ma } } +#if !defined(MA_APPLE_MOBILE) result = ma_context__init_device_tracking__coreaudio(pContext); if (result != MA_SUCCESS) { #if !defined(MA_NO_RUNTIME_LINKING) && !defined(MA_APPLE_MOBILE) @@ -25285,6 +25288,7 @@ static ma_result ma_context_init__coreaudio(const ma_context_config* pConfig, ma #endif return result; } +#endif return MA_SUCCESS; } @@ -61831,6 +61835,9 @@ The following miscellaneous changes have also been made. /* REVISION HISTORY ================ +v0.10.12 - TBD + - Fix compilation errors on the iOS build. + v0.10.11 - 28-06-2020 - Fix some bugs with device tracking on Core Audio. - Updates to documentation.