diff options
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/effects/equalizer.c | 16 | ||||
-rw-r--r-- | Alc/effects/modulator.c | 4 |
2 files changed, 10 insertions, 10 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; } } 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; |