aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-08-08 04:05:07 -0700
committerChris Robinson <[email protected]>2018-08-08 04:05:07 -0700
commita8250db2bbfbc06b7438cff83ebf382cf43690b4 (patch)
treeafd8e5c33dbe18ea26b59639a737c648d0387f36 /Alc/effects
parent04921dd7275326148fb20dac7ae599c91e8f96b9 (diff)
Use the correct input channel for the compressor effect
Diffstat (limited to 'Alc/effects')
-rw-r--r--Alc/effects/compressor.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}