From c3167661441525ed1f33daa06cdc38e7e5c70654 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 18 May 2011 18:09:04 -0700 Subject: Use lerp() in a couple more places --- Alc/alcReverb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc') diff --git a/Alc/alcReverb.c b/Alc/alcReverb.c index e48b3b9c..95b84fdd 100644 --- a/Alc/alcReverb.c +++ b/Alc/alcReverb.c @@ -635,7 +635,7 @@ static ALvoid Update3DPanning(const ALCdevice *Device, const ALfloat *Reflection for(index = 0;index < Device->NumChan;index++) { Channel chan = Device->Speaker2Chan[index]; - State->Early.PanGain[chan] = 1.0 + (speakerGain[chan]-1.0)*dirGain; + State->Early.PanGain[chan] = lerp(1.0, speakerGain[chan], dirGain); } @@ -648,7 +648,7 @@ static ALvoid Update3DPanning(const ALCdevice *Device, const ALfloat *Reflection for(index = 0;index < Device->NumChan;index++) { Channel chan = Device->Speaker2Chan[index]; - State->Late.PanGain[chan] = 1.0 + (speakerGain[chan]-1.0)*dirGain; + State->Late.PanGain[chan] = lerp(1.0, speakerGain[chan], dirGain); } } -- cgit v1.2.3