From a8250db2bbfbc06b7438cff83ebf382cf43690b4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 8 Aug 2018 04:05:07 -0700 Subject: Use the correct input channel for the compressor effect --- Alc/effects/compressor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alc/effects/compressor.c b/Alc/effects/compressor.c index a5f1953b..af60777a 100644 --- a/Alc/effects/compressor.c +++ b/Alc/effects/compressor.c @@ -164,7 +164,7 @@ static ALvoid ALcompressorState_process(ALcompressorState *state, ALsizei Sample continue; for(i = 0;i < td;i++) - SamplesOut[k][base+i] += SamplesIn[k][base+i] * gains[i] * gain; + SamplesOut[k][base+i] += SamplesIn[j][base+i] * gains[i] * gain; } } -- cgit v1.2.3