diff options
author | Chris Robinson <[email protected]> | 2011-09-11 07:42:23 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-11 07:42:23 -0700 |
commit | d51b93f8697ef562f09c843df31aaeb773d3caff (patch) | |
tree | 5b0faf40d137dad571eb3016289a71e46e2e9cea /Alc/alcModulator.c | |
parent | ab2b62c98030aa545ee0043feeae05916329a521 (diff) |
Remove the union from the effect parameter types
Diffstat (limited to 'Alc/alcModulator.c')
-rw-r--r-- | Alc/alcModulator.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/alcModulator.c b/Alc/alcModulator.c index c4085fa3..e0ab5a1a 100644 --- a/Alc/alcModulator.c +++ b/Alc/alcModulator.c @@ -139,19 +139,19 @@ static ALvoid ModulatorUpdate(ALeffectState *effect, ALCcontext *Context, const ALfloat gain, cw, a = 0.0f; ALuint index; - if(Slot->effect.Params.Modulator.Waveform == AL_RING_MODULATOR_SINUSOID) + if(Slot->effect.Modulator.Waveform == AL_RING_MODULATOR_SINUSOID) state->Waveform = SINUSOID; - else if(Slot->effect.Params.Modulator.Waveform == AL_RING_MODULATOR_SAWTOOTH) + else if(Slot->effect.Modulator.Waveform == AL_RING_MODULATOR_SAWTOOTH) state->Waveform = SAWTOOTH; - else if(Slot->effect.Params.Modulator.Waveform == AL_RING_MODULATOR_SQUARE) + else if(Slot->effect.Modulator.Waveform == AL_RING_MODULATOR_SQUARE) state->Waveform = SQUARE; - state->step = Slot->effect.Params.Modulator.Frequency*(1<<WAVEFORM_FRACBITS) / + state->step = Slot->effect.Modulator.Frequency*(1<<WAVEFORM_FRACBITS) / Device->Frequency; if(!state->step) state->step = 1; - cw = cos(2.0*M_PI * Slot->effect.Params.Modulator.HighPassCutoff / + cw = cos(2.0*M_PI * Slot->effect.Modulator.HighPassCutoff / Device->Frequency); a = (2.0f-cw) - aluSqrt(aluPow(2.0f-cw, 2.0f) - 1.0f); state->iirFilter.coeff = a; |