OpenAL/iOS: Drop support for capture on iOS with OpenAL.

This commit is contained in:
David Reid
2018-11-20 20:30:54 +10:00
parent dc8c93ff1d
commit 706eaa0421
+4 -2
View File
@@ -154,6 +154,10 @@
// </Capabilities> // </Capabilities>
// </Package> // </Package>
// //
// OpenAL
// ------
// - Capture is not supported on iOS with OpenAL. Use the Core Audio backend instead.
//
// //
// OPTIONS // OPTIONS
// ======= // =======
@@ -18994,8 +18998,6 @@ mal_result mal_device_init__openal(mal_context* pContext, mal_device_type type,
if (type == mal_device_type_playback) { if (type == mal_device_type_playback) {
pDeviceALC = ((MAL_LPALCOPENDEVICE)pContext->openal.alcOpenDevice)((pDeviceID == NULL) ? NULL : pDeviceID->openal); pDeviceALC = ((MAL_LPALCOPENDEVICE)pContext->openal.alcOpenDevice)((pDeviceID == NULL) ? NULL : pDeviceID->openal);
} else { } 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); pDeviceALC = ((MAL_LPALCCAPTUREOPENDEVICE)pContext->openal.alcCaptureOpenDevice)((pDeviceID == NULL) ? NULL : pDeviceID->openal, frequencyAL, formatAL, bufferSizeInSamplesAL);
} }