From 95c9f9112030f4e468af7de55ccb5105fd193246 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sun, 24 Nov 2024 15:07:04 -0800 Subject: [PATCH] Fix FreeSurround being broken by the speed control It should be deriving its channel count from the file format, since it's applied before any other filters. Signed-off-by: Christopher Snowhill --- Audio/Output/OutputCoreAudio.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Audio/Output/OutputCoreAudio.m b/Audio/Output/OutputCoreAudio.m index 56c571108..93f6fa409 100644 --- a/Audio/Output/OutputCoreAudio.m +++ b/Audio/Output/OutputCoreAudio.m @@ -818,7 +818,7 @@ current_device_listener(AudioObjectID inObjectID, UInt32 inNumberAddresses, cons soxr_error_t error; soxr_quality_spec_t q_spec = soxr_quality_spec(SOXR_HQ, SOXR_VR); - rssimplespeed = soxr_create(1 << OCTAVES, 1, channels, &error, NULL, &q_spec, NULL); + rssimplespeed = soxr_create(1 << OCTAVES, 1, realStreamFormat.mChannelsPerFrame, &error, NULL, &q_spec, NULL); soxr_set_io_ratio(rssimplespeed, speed, 0); ssRenderedIn = 0.0;