diff options
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); } } |