From a53a8ecb82d8c8e1b64a3dd49222574653b6debf Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Fri, 1 Jul 2022 14:11:27 -0700 Subject: [PATCH] [Audio Output] Fix equalizer support Equalizer was copying the output of the equalizer repeatedly to the first output channel, instead of copying each channel correctly. This had the effect of making the equalizer output adjusted audio to only the left channel in stereo output, and possibly render the stream sounding weird. Signed-off-by: Christopher Snowhill --- Audio/Output/OutputAVFoundation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Audio/Output/OutputAVFoundation.m b/Audio/Output/OutputAVFoundation.m index 240cb0982..09b9e4f7f 100644 --- a/Audio/Output/OutputAVFoundation.m +++ b/Audio/Output/OutputAVFoundation.m @@ -757,7 +757,7 @@ current_device_listener(AudioObjectID inObjectID, UInt32 inNumberAddresses, cons timeStamp.mSampleTime += ((double)samplesRendered) / streamFormat.mSampleRate; for(int i = 0; i < channels; ++i) { - cblas_scopy(samplesRendered, &eqBuffer[1024 * i], 1, samplePtr, channels); + cblas_scopy(samplesRendered, &eqBuffer[1024 * i], 1, samplePtr + i, channels); } } }