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 <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2024-11-24 15:07:04 -08:00
parent 58cbda594a
commit 95c9f91120

View file

@ -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;