Comment out some code to try and fix an error on iOS.

Public issue https://github.com/mackron/miniaudio/issues/101
This commit is contained in:
David Reid
2021-06-17 18:05:06 +10:00
parent 2d43f4d01c
commit f24967f952
+3
View File
@@ -26369,6 +26369,8 @@ static ma_result ma_device__untrack__coreaudio(ma_device* pDevice)
printf("[Core Audio] Changing Route. inputNumberChannels=%d; outputNumberOfChannels=%d\n", (int)pSession.inputNumberOfChannels, (int)pSession.outputNumberOfChannels);
#endif
/* Temporarily disabling this section of code because it appears to be causing errors. */
#if 0
ma_uint32 previousState = ma_device_get_state(m_pDevice);
if (previousState == MA_STATE_STARTED) {
@@ -26389,6 +26391,7 @@ static ma_result ma_device__untrack__coreaudio(ma_device* pDevice)
if (previousState == MA_STATE_STARTED) {
ma_device_start(m_pDevice);
}
#endif
}
@end
#endif