diff options
author | Chris Robinson <[email protected]> | 2016-03-25 23:25:13 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-03-25 23:25:13 -0700 |
commit | e0466766d7f9e3017c3bb8fc39a132ee05a357d6 (patch) | |
tree | dc5ae06aacb44335297a8e647165844d09cfe492 /Alc/effects/compressor.c | |
parent | e23da7a1dea9997f61d23af50ed915ebee98f2e9 (diff) |
Include any first-order scaling in the FOAOut coefficients
Diffstat (limited to 'Alc/effects/compressor.c')
-rw-r--r-- | Alc/effects/compressor.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Alc/effects/compressor.c b/Alc/effects/compressor.c index 6358f672..4e1d55f1 100644 --- a/Alc/effects/compressor.c +++ b/Alc/effects/compressor.c @@ -58,17 +58,15 @@ static ALboolean ALcompressorState_deviceUpdate(ALcompressorState *state, ALCdev static ALvoid ALcompressorState_update(ALcompressorState *state, const ALCdevice *device, const ALeffectslot *slot) { aluMatrixf matrix; - ALfloat scale; ALuint i; state->Enabled = slot->EffectProps.Compressor.OnOff; - scale = device->Dry.AmbiScale; aluMatrixfSet(&matrix, - 1.0f, 0.0f, 0.0f, 0.0f, - 0.0f, scale, 0.0f, 0.0f, - 0.0f, 0.0f, scale, 0.0f, - 0.0f, 0.0f, 0.0f, scale + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f ); STATIC_CAST(ALeffectState,state)->OutBuffer = device->FOAOut.Buffer; |