diff options
author | Chris Robinson <[email protected]> | 2016-09-05 02:02:14 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-09-05 02:02:14 -0700 |
commit | 8a64f071213f387c4675012ec1df51b9295564b3 (patch) | |
tree | 8a892e91b2748d6e0bc4e108b14384f8d897e4b6 /Alc/effects/equalizer.c | |
parent | 42452b7f796a317a8d1159d16c5b84f8defd5e80 (diff) |
Use a predefined identity matrix
Diffstat (limited to 'Alc/effects/equalizer.c')
-rw-r--r-- | Alc/effects/equalizer.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Alc/effects/equalizer.c b/Alc/effects/equalizer.c index 2b59cb37..61932ffb 100644 --- a/Alc/effects/equalizer.c +++ b/Alc/effects/equalizer.c @@ -126,21 +126,13 @@ static ALvoid ALequalizerState_update(ALequalizerState *state, const ALCdevice * { ALfloat frequency = (ALfloat)device->Frequency; ALfloat gain, freq_mult; - aluMatrixf matrix; ALuint i; - aluMatrixfSet(&matrix, - 1.0f, 0.0f, 0.0f, 0.0f, - 0.0f, 1.0f, 0.0f, 0.0f, - 0.0f, 0.0f, 1.0f, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f - ); - STATIC_CAST(ALeffectState,state)->OutBuffer = device->FOAOut.Buffer; STATIC_CAST(ALeffectState,state)->OutChannels = device->FOAOut.NumChannels; for(i = 0;i < MAX_EFFECT_CHANNELS;i++) - ComputeFirstOrderGains(device->FOAOut, matrix.m[i], slot->Params.Gain, - state->Gain[i]); + ComputeFirstOrderGains(device->FOAOut, IdentityMatrixf.m[i], + slot->Params.Gain, state->Gain[i]); /* Calculate coefficients for the each type of filter. Note that the shelf * filters' gain is for the reference frequency, which is the centerpoint |