diff options
author | Chris Robinson <[email protected]> | 2016-01-23 03:38:15 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-01-23 03:38:15 -0800 |
commit | 94816d007375295a8d767b06a483a060be292692 (patch) | |
tree | f66f29a492d2b4d93dc3b857f6003faa0f2cb44b /Alc/effects/modulator.c | |
parent | 352d9afd642e94651e69dbb28ade50eea88eae0d (diff) |
Reorder filterstate properties
Diffstat (limited to 'Alc/effects/modulator.c')
-rw-r--r-- | Alc/effects/modulator.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Alc/effects/modulator.c b/Alc/effects/modulator.c index dceb408e..32d25c76 100644 --- a/Alc/effects/modulator.c +++ b/Alc/effects/modulator.c @@ -142,12 +142,11 @@ static ALvoid ALmodulatorState_update(ALmodulatorState *state, ALCdevice *Device cw = cosf(F_TAU * Slot->EffectProps.Modulator.HighPassCutoff / Device->Frequency); a = (2.0f-cw) - sqrtf(powf(2.0f-cw, 2.0f) - 1.0f); - state->Filter.b[0] = a; - state->Filter.b[1] = -a; - state->Filter.b[2] = 0.0f; - state->Filter.a[0] = 1.0f; - state->Filter.a[1] = -a; - state->Filter.a[2] = 0.0f; + state->Filter.a1 = -a; + state->Filter.a2 = 0.0f; + state->Filter.b1 = -a; + state->Filter.b2 = 0.0f; + state->Filter.input_gain = a; ComputeAmbientGains(Device, Slot->Gain, state->Gain); } |