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/alcEcho.c | |
parent | ab2b62c98030aa545ee0043feeae05916329a521 (diff) |
Remove the union from the effect parameter types
Diffstat (limited to 'Alc/alcEcho.c')
-rw-r--r-- | Alc/alcEcho.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/alcEcho.c b/Alc/alcEcho.c index b62c124a..f5d1174f 100644 --- a/Alc/alcEcho.c +++ b/Alc/alcEcho.c @@ -101,18 +101,18 @@ static ALvoid EchoUpdate(ALeffectState *effect, ALCcontext *Context, const ALeff ALfloat lrpan, cw, g, gain; ALuint i; - state->Tap[0].delay = (ALuint)(Slot->effect.Params.Echo.Delay * frequency) + 1; - state->Tap[1].delay = (ALuint)(Slot->effect.Params.Echo.LRDelay * frequency); + state->Tap[0].delay = (ALuint)(Slot->effect.Echo.Delay * frequency) + 1; + state->Tap[1].delay = (ALuint)(Slot->effect.Echo.LRDelay * frequency); state->Tap[1].delay += state->Tap[0].delay; - lrpan = Slot->effect.Params.Echo.Spread*0.5f + 0.5f; + lrpan = Slot->effect.Echo.Spread*0.5f + 0.5f; state->GainL = aluSqrt( lrpan); state->GainR = aluSqrt(1.0f-lrpan); - state->FeedGain = Slot->effect.Params.Echo.Feedback; + state->FeedGain = Slot->effect.Echo.Feedback; cw = cos(2.0*M_PI * LOWPASSFREQCUTOFF / frequency); - g = 1.0f - Slot->effect.Params.Echo.Damping; + g = 1.0f - Slot->effect.Echo.Damping; state->iirFilter.coeff = lpCoeffCalc(g, cw); gain = Slot->Gain; |