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/modulator.c | |
parent | 42452b7f796a317a8d1159d16c5b84f8defd5e80 (diff) |
Use a predefined identity matrix
Diffstat (limited to 'Alc/effects/modulator.c')
-rw-r--r-- | Alc/effects/modulator.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Alc/effects/modulator.c b/Alc/effects/modulator.c index 08f3d5eb..5ca37f4f 100644 --- a/Alc/effects/modulator.c +++ b/Alc/effects/modulator.c @@ -117,7 +117,6 @@ static ALboolean ALmodulatorState_deviceUpdate(ALmodulatorState *UNUSED(state), static ALvoid ALmodulatorState_update(ALmodulatorState *state, const ALCdevice *Device, const ALeffectslot *Slot, const ALeffectProps *props) { - aluMatrixf matrix; ALfloat cw, a; ALuint i; @@ -146,18 +145,11 @@ static ALvoid ALmodulatorState_update(ALmodulatorState *state, const ALCdevice * state->Filter[i].process = ALfilterState_processC; } - 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]); } static ALvoid ALmodulatorState_process(ALmodulatorState *state, ALuint SamplesToDo, const ALfloat (*restrict SamplesIn)[BUFFERSIZE], ALfloat (*restrict SamplesOut)[BUFFERSIZE], ALuint NumChannels) |