From 706eaa0421e661b1442dedcbd898b7b9da54330e Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 20 Nov 2018 20:30:54 +1000 Subject: [PATCH] OpenAL/iOS: Drop support for capture on iOS with OpenAL. --- mini_al.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mini_al.h b/mini_al.h index 117e068b..f8a2c524 100644 --- a/mini_al.h +++ b/mini_al.h @@ -154,6 +154,10 @@ // // // +// OpenAL +// ------ +// - Capture is not supported on iOS with OpenAL. Use the Core Audio backend instead. +// // // OPTIONS // ======= @@ -18994,8 +18998,6 @@ mal_result mal_device_init__openal(mal_context* pContext, mal_device_type type, if (type == mal_device_type_playback) { pDeviceALC = ((MAL_LPALCOPENDEVICE)pContext->openal.alcOpenDevice)((pDeviceID == NULL) ? NULL : pDeviceID->openal); } else { - // I had a bug report that suggested I set the OpenAL context to NULL before attempting to open a capture device. - ((MAL_LPALCMAKECONTEXTCURRENT)pContext->openal.alcMakeContextCurrent)(NULL); pDeviceALC = ((MAL_LPALCCAPTUREOPENDEVICE)pContext->openal.alcCaptureOpenDevice)((pDeviceID == NULL) ? NULL : pDeviceID->openal, frequencyAL, formatAL, bufferSizeInSamplesAL); }