From 35a0430c8134c6a13768cd6bf7b252d24ac9e2aa Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 20 May 2011 09:36:36 -0700 Subject: Store the separate effect parameters in a union --- Alc/alcEcho.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Alc/alcEcho.c') diff --git a/Alc/alcEcho.c b/Alc/alcEcho.c index 35b94a90..aea2b00a 100644 --- a/Alc/alcEcho.c +++ b/Alc/alcEcho.c @@ -107,18 +107,18 @@ static ALvoid EchoUpdate(ALeffectState *effect, ALCcontext *Context, const ALeff ALuint frequency = Context->Device->Frequency; ALfloat lrpan, cw, g; - state->Tap[0].delay = (ALuint)(Effect->Echo.Delay * frequency) + 1; - state->Tap[1].delay = (ALuint)(Effect->Echo.LRDelay * frequency); + state->Tap[0].delay = (ALuint)(Effect->Params.Echo.Delay * frequency) + 1; + state->Tap[1].delay = (ALuint)(Effect->Params.Echo.LRDelay * frequency); state->Tap[1].delay += state->Tap[0].delay; - lrpan = Effect->Echo.Spread*0.5f + 0.5f; + lrpan = Effect->Params.Echo.Spread*0.5f + 0.5f; state->GainL = aluSqrt( lrpan); state->GainR = aluSqrt(1.0f-lrpan); - state->FeedGain = Effect->Echo.Feedback; + state->FeedGain = Effect->Params.Echo.Feedback; cw = cos(2.0*M_PI * LOWPASSFREQCUTOFF / frequency); - g = 1.0f - Effect->Echo.Damping; + g = 1.0f - Effect->Params.Echo.Damping; state->iirFilter.coeff = lpCoeffCalc(g, cw); } -- cgit v1.2.3