diff options
author | Chris Robinson <[email protected]> | 2016-12-21 21:35:50 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-12-21 21:35:50 -0800 |
commit | 080b0cea8ba4c21f898c18b70187822cd18f2eb6 (patch) | |
tree | 7e57360ab7302e98b9e7fcb639ddfb9cb3585a82 /Alc/effects/equalizer.c | |
parent | 4c33818dde702128be13040f9fc8bd0a5b835c76 (diff) |
Reorder filter coefficients
Diffstat (limited to 'Alc/effects/equalizer.c')
-rw-r--r-- | Alc/effects/equalizer.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Alc/effects/equalizer.c b/Alc/effects/equalizer.c index 1a63b418..13826a3b 100644 --- a/Alc/effects/equalizer.c +++ b/Alc/effects/equalizer.c @@ -146,11 +146,11 @@ static ALvoid ALequalizerState_update(ALequalizerState *state, const ALCdevice * /* Copy the filter coefficients for the other input channels. */ for(i = 1;i < MAX_EFFECT_CHANNELS;i++) { - state->filter[0][i].a1 = state->filter[0][0].a1; - state->filter[0][i].a2 = state->filter[0][0].a2; state->filter[0][i].b0 = state->filter[0][0].b0; state->filter[0][i].b1 = state->filter[0][0].b1; state->filter[0][i].b2 = state->filter[0][0].b2; + state->filter[0][i].a1 = state->filter[0][0].a1; + state->filter[0][i].a2 = state->filter[0][0].a2; } gain = props->Equalizer.Mid1Gain; @@ -162,11 +162,11 @@ static ALvoid ALequalizerState_update(ALequalizerState *state, const ALCdevice * ); for(i = 1;i < MAX_EFFECT_CHANNELS;i++) { - state->filter[1][i].a1 = state->filter[1][0].a1; - state->filter[1][i].a2 = state->filter[1][0].a2; state->filter[1][i].b0 = state->filter[1][0].b0; state->filter[1][i].b1 = state->filter[1][0].b1; state->filter[1][i].b2 = state->filter[1][0].b2; + state->filter[1][i].a1 = state->filter[1][0].a1; + state->filter[1][i].a2 = state->filter[1][0].a2; } gain = props->Equalizer.Mid2Gain; @@ -178,11 +178,11 @@ static ALvoid ALequalizerState_update(ALequalizerState *state, const ALCdevice * ); for(i = 1;i < MAX_EFFECT_CHANNELS;i++) { - state->filter[2][i].a1 = state->filter[2][0].a1; - state->filter[2][i].a2 = state->filter[2][0].a2; state->filter[2][i].b0 = state->filter[2][0].b0; state->filter[2][i].b1 = state->filter[2][0].b1; state->filter[2][i].b2 = state->filter[2][0].b2; + state->filter[2][i].a1 = state->filter[2][0].a1; + state->filter[2][i].a2 = state->filter[2][0].a2; } gain = sqrtf(props->Equalizer.HighGain); @@ -192,11 +192,11 @@ static ALvoid ALequalizerState_update(ALequalizerState *state, const ALCdevice * ); for(i = 1;i < MAX_EFFECT_CHANNELS;i++) { - state->filter[3][i].a1 = state->filter[3][0].a1; - state->filter[3][i].a2 = state->filter[3][0].a2; state->filter[3][i].b0 = state->filter[3][0].b0; state->filter[3][i].b1 = state->filter[3][0].b1; state->filter[3][i].b2 = state->filter[3][0].b2; + state->filter[3][i].a1 = state->filter[3][0].a1; + state->filter[3][i].a2 = state->filter[3][0].a2; } } |