diff options
Diffstat (limited to 'Alc/effects')
-rw-r--r-- | Alc/effects/autowah.c | 2 | ||||
-rw-r--r-- | Alc/effects/equalizer.c | 8 | ||||
-rw-r--r-- | Alc/effects/modulator.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/Alc/effects/autowah.c b/Alc/effects/autowah.c index 648afc83..c8b70595 100644 --- a/Alc/effects/autowah.c +++ b/Alc/effects/autowah.c @@ -128,9 +128,9 @@ static ALvoid ALautowahState_process(ALautowahState *state, ALuint SamplesToDo, state->LowPass.a1 = a[1] / a[0]; state->LowPass.a2 = a[2] / a[0]; + state->LowPass.b0 = b[0] / a[0]; state->LowPass.b1 = b[1] / a[0]; state->LowPass.b2 = b[2] / a[0]; - state->LowPass.input_gain = b[0] / a[0]; temps[it] = ALfilterState_processSingle(&state->LowPass, smp); } diff --git a/Alc/effects/equalizer.c b/Alc/effects/equalizer.c index 25e36724..96676d34 100644 --- a/Alc/effects/equalizer.c +++ b/Alc/effects/equalizer.c @@ -131,9 +131,9 @@ static ALvoid ALequalizerState_update(ALequalizerState *state, const ALCdevice * { 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].input_gain = state->filter[0][0].input_gain; state->filter[0][i].process = state->filter[0][0].process; } @@ -148,9 +148,9 @@ static ALvoid ALequalizerState_update(ALequalizerState *state, const ALCdevice * { 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].input_gain = state->filter[1][0].input_gain; state->filter[1][i].process = state->filter[1][0].process; } @@ -165,9 +165,9 @@ static ALvoid ALequalizerState_update(ALequalizerState *state, const ALCdevice * { 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].input_gain = state->filter[2][0].input_gain; state->filter[2][i].process = state->filter[2][0].process; } @@ -180,9 +180,9 @@ static ALvoid ALequalizerState_update(ALequalizerState *state, const ALCdevice * { 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].input_gain = state->filter[3][0].input_gain; state->filter[3][i].process = state->filter[3][0].process; } } diff --git a/Alc/effects/modulator.c b/Alc/effects/modulator.c index 0b0971b2..7e3e89b2 100644 --- a/Alc/effects/modulator.c +++ b/Alc/effects/modulator.c @@ -117,9 +117,9 @@ static ALvoid ALmodulatorState_update(ALmodulatorState *state, const ALCdevice * { 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].input_gain = a; state->Filter[i].process = ALfilterState_processC; } |