Commit f24967f9 authored by David Reid's avatar David Reid

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

Public issue https://github.com/mackron/miniaudio/issues/101
parent 2d43f4d0
...@@ -26369,6 +26369,8 @@ static ma_result ma_device__untrack__coreaudio(ma_device* pDevice) ...@@ -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); printf("[Core Audio] Changing Route. inputNumberChannels=%d; outputNumberOfChannels=%d\n", (int)pSession.inputNumberOfChannels, (int)pSession.outputNumberOfChannels);
#endif #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); ma_uint32 previousState = ma_device_get_state(m_pDevice);
if (previousState == MA_STATE_STARTED) { if (previousState == MA_STATE_STARTED) {
...@@ -26389,6 +26391,7 @@ static ma_result ma_device__untrack__coreaudio(ma_device* pDevice) ...@@ -26389,6 +26391,7 @@ static ma_result ma_device__untrack__coreaudio(ma_device* pDevice)
if (previousState == MA_STATE_STARTED) { if (previousState == MA_STATE_STARTED) {
ma_device_start(m_pDevice); ma_device_start(m_pDevice);
} }
#endif
} }
@end @end
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment