mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 16:54:03 +02:00
iOS: Remove an experimental conditional.
This commit is contained in:
+11
-13
@@ -25710,21 +25710,19 @@ 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;
|
||||||
|
|
||||||
if (m_pDevice->type == ma_device_type_capture || m_pDevice->type == ma_device_type_duplex) {
|
if (m_pDevice->type == ma_device_type_capture || m_pDevice->type == ma_device_type_duplex) {
|
||||||
m_pDevice->capture.internalChannels = (ma_uint32)pSession.inputNumberOfChannels;
|
m_pDevice->capture.internalChannels = (ma_uint32)pSession.inputNumberOfChannels;
|
||||||
ma_device__post_init_setup(m_pDevice, ma_device_type_capture);
|
ma_device__post_init_setup(m_pDevice, ma_device_type_capture);
|
||||||
}
|
}
|
||||||
if (m_pDevice->type == ma_device_type_playback || m_pDevice->type == ma_device_type_duplex) {
|
if (m_pDevice->type == ma_device_type_playback || m_pDevice->type == ma_device_type_duplex) {
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user