From e0466766d7f9e3017c3bb8fc39a132ee05a357d6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 25 Mar 2016 23:25:13 -0700 Subject: Include any first-order scaling in the FOAOut coefficients --- Alc/effects/equalizer.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Alc/effects/equalizer.c') diff --git a/Alc/effects/equalizer.c b/Alc/effects/equalizer.c index ffc9830f..f3383bd2 100644 --- a/Alc/effects/equalizer.c +++ b/Alc/effects/equalizer.c @@ -103,12 +103,11 @@ static ALvoid ALequalizerState_update(ALequalizerState *state, const ALCdevice * aluMatrixf matrix; ALuint i; - gain = device->Dry.AmbiScale; aluMatrixfSet(&matrix, 1.0f, 0.0f, 0.0f, 0.0f, - 0.0f, gain, 0.0f, 0.0f, - 0.0f, 0.0f, gain, 0.0f, - 0.0f, 0.0f, 0.0f, gain + 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; -- cgit v1.2.3