mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 16:24:04 +02:00
iOS: Fix a compilation warning with MA_DEBUG_OUTPUT.
This commit is contained in:
+1
-1
@@ -26038,7 +26038,7 @@ static ma_result ma_device__untrack__coreaudio(ma_device* pDevice)
|
|||||||
|
|
||||||
if (reason == AVAudioSessionRouteChangeReasonNewDeviceAvailable || reason == AVAudioSessionRouteChangeReasonCategoryChange || reason == AVAudioSessionRouteChangeReasonOverride) {
|
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", pSession.inputNumberOfChannels, 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user