From 080b0cea8ba4c21f898c18b70187822cd18f2eb6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 21 Dec 2016 21:35:50 -0800 Subject: Reorder filter coefficients --- Alc/effects/modulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/effects/modulator.c') diff --git a/Alc/effects/modulator.c b/Alc/effects/modulator.c index 247cdf61..6d096048 100644 --- a/Alc/effects/modulator.c +++ b/Alc/effects/modulator.c @@ -137,11 +137,11 @@ static ALvoid ALmodulatorState_update(ALmodulatorState *state, const ALCdevice * for(i = 0;i < MAX_EFFECT_CHANNELS;i++) { - state->Filter[i].a1 = -a; - state->Filter[i].a2 = 0.0f; state->Filter[i].b0 = a; state->Filter[i].b1 = -a; state->Filter[i].b2 = 0.0f; + state->Filter[i].a1 = -a; + state->Filter[i].a2 = 0.0f; } STATIC_CAST(ALeffectState,state)->OutBuffer = Device->FOAOut.Buffer; -- cgit v1.2.3