diff --git a/extras/miniaudio_split/miniaudio.c b/extras/miniaudio_split/miniaudio.c index 5354e517..c141e113 100644 --- a/extras/miniaudio_split/miniaudio.c +++ b/extras/miniaudio_split/miniaudio.c @@ -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 - 2020-07-04 David Reid - davidreidsoftware@gmail.com @@ -19498,7 +19498,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; @@ -19675,24 +19677,26 @@ static ma_result ma_context_init__coreaudio(const ma_context_config* pConfig, ma pContext->coreaudio.component = ((ma_AudioComponentFindNext_proc)pContext->coreaudio.AudioComponentFindNext)(NULL, &desc); if (pContext->coreaudio.component == NULL) { - #if !defined(MA_NO_RUNTIME_LINKING) && !defined(MA_APPLE_MOBILE) + #if !defined(MA_NO_RUNTIME_LINKING) && !defined(MA_APPLE_MOBILE) ma_dlclose(pContext, pContext->coreaudio.hAudioUnit); ma_dlclose(pContext, pContext->coreaudio.hCoreAudio); ma_dlclose(pContext, pContext->coreaudio.hCoreFoundation); - #endif + #endif return MA_FAILED_TO_INIT_BACKEND; } } +#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) + #if !defined(MA_NO_RUNTIME_LINKING) && !defined(MA_APPLE_MOBILE) ma_dlclose(pContext, pContext->coreaudio.hAudioUnit); ma_dlclose(pContext, pContext->coreaudio.hCoreAudio); ma_dlclose(pContext, pContext->coreaudio.hCoreFoundation); -#endif + #endif return result; } +#endif return MA_SUCCESS; } diff --git a/extras/miniaudio_split/miniaudio.h b/extras/miniaudio_split/miniaudio.h index 90122120..d52e4d71 100644 --- a/extras/miniaudio_split/miniaudio.h +++ b/extras/miniaudio_split/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 - 2020-07-04 David Reid - davidreidsoftware@gmail.com @@ -19,7 +19,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__) diff --git a/miniaudio.h b/miniaudio.h index cddfc719..7703643b 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.12 - TBD +miniaudio - v0.10.12 - 2020-07-04 David Reid - davidreidsoftware@gmail.com @@ -61835,14 +61835,14 @@ The following miscellaneous changes have also been made. /* REVISION HISTORY ================ -v0.10.12 - TBD +v0.10.12 - 2020-07-04 - Fix compilation errors on the iOS build. -v0.10.11 - 28-06-2020 +v0.10.11 - 2020-06-28 - Fix some bugs with device tracking on Core Audio. - Updates to documentation. -v0.10.10 - 26-06-2020 +v0.10.10 - 2020-06-26 - Add include guard for the implementation section. - Mark ma_device_sink_info_callback() as static. - Fix compilation errors with MA_NO_DECODING and MA_NO_ENCODING.