Commit c5469536 authored by David Reid's avatar David Reid

iOS: Remove an experimental conditional.

parent 2b3f8603
...@@ -25710,10 +25710,9 @@ static ma_result ma_device__untrack__coreaudio(ma_device* pDevice) ...@@ -25710,10 +25710,9 @@ static ma_result ma_device__untrack__coreaudio(ma_device* pDevice)
} break; } break;
} }
if (reason == AVAudioSessionRouteChangeReasonNewDeviceAvailable || reason == AVAudioSessionRouteChangeReasonCategoryChange || reason == AVAudioSessionRouteChangeReasonOverride) { #if defined(MA_DEBUG_OUTPUT)
#if defined(MA_DEBUG_OUTPUT)
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
m_pDevice->sampleRate = (ma_uint32)pSession.sampleRate; m_pDevice->sampleRate = (ma_uint32)pSession.sampleRate;
...@@ -25725,7 +25724,6 @@ static ma_result ma_device__untrack__coreaudio(ma_device* pDevice) ...@@ -25725,7 +25724,6 @@ static ma_result ma_device__untrack__coreaudio(ma_device* pDevice)
m_pDevice->playback.internalChannels = (ma_uint32)pSession.outputNumberOfChannels; m_pDevice->playback.internalChannels = (ma_uint32)pSession.outputNumberOfChannels;
ma_device__post_init_setup(m_pDevice, ma_device_type_playback); ma_device__post_init_setup(m_pDevice, ma_device_type_playback);
} }
}
} }
@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