aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/equalizer.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/effects/equalizer.c')
-rw-r--r--Alc/effects/equalizer.c16
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;
}
}