aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/compressor.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/effects/compressor.c')
-rw-r--r--Alc/effects/compressor.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Alc/effects/compressor.c b/Alc/effects/compressor.c
index ae859793..6358f672 100644
--- a/Alc/effects/compressor.c
+++ b/Alc/effects/compressor.c
@@ -70,8 +70,11 @@ static ALvoid ALcompressorState_update(ALcompressorState *state, const ALCdevice
0.0f, 0.0f, scale, 0.0f,
0.0f, 0.0f, 0.0f, scale
);
+
+ STATIC_CAST(ALeffectState,state)->OutBuffer = device->FOAOut.Buffer;
+ STATIC_CAST(ALeffectState,state)->OutChannels = device->FOAOut.NumChannels;
for(i = 0;i < 4;i++)
- ComputeFirstOrderGains(device->Dry.AmbiCoeffs, device->Dry.NumChannels,
+ ComputeFirstOrderGains(device->FOAOut.AmbiCoeffs, device->FOAOut.NumChannels,
matrix.m[i], slot->Gain, state->Gain[i]);
}