diff options
author | Chris Robinson <[email protected]> | 2011-05-18 18:09:04 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-05-18 18:09:04 -0700 |
commit | c3167661441525ed1f33daa06cdc38e7e5c70654 (patch) | |
tree | 5855ab3dc2e5259d28879550651fe41b92610ed7 /Alc/alcReverb.c | |
parent | c00b2f92542f232cc6d8da90dcdcc562ee04e3ff (diff) |
Use lerp() in a couple more places
Diffstat (limited to 'Alc/alcReverb.c')
-rw-r--r-- | Alc/alcReverb.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |