From 127c7e3b8cb949dc405660e9429ff4e8b475bf60 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 5 Feb 2016 11:06:10 -0800 Subject: [PATCH] Don't explicitly check for LFE It's going to be set to 0 gain anyway --- Alc/effects/reverb.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index 74388c13..ddf4689b 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -679,11 +679,7 @@ static ALvoid UpdateDirectPanning(const ALCdevice *Device, const ALfloat *Reflec if(!(length > FLT_EPSILON)) { for(i = 0;i < Device->NumChannels;i++) - { - if(Device->ChannelName[i] == LFE) - continue; State->Early.PanGain[i&3][i] = AmbientGains[i] * EarlyGain; - } } else { @@ -701,11 +697,7 @@ static ALvoid UpdateDirectPanning(const ALCdevice *Device, const ALfloat *Reflec CalcDirectionCoeffs(pan, coeffs); ComputePanningGains(Device->AmbiCoeffs, Device->NumChannels, coeffs, Gain, DirGains); for(i = 0;i < Device->NumChannels;i++) - { - if(Device->ChannelName[i] == LFE) - continue; State->Early.PanGain[i&3][i] = lerp(AmbientGains[i], DirGains[i], length) * EarlyGain; - } } memset(State->Late.PanGain, 0, sizeof(State->Late.PanGain)); @@ -713,11 +705,7 @@ static ALvoid UpdateDirectPanning(const ALCdevice *Device, const ALfloat *Reflec if(!(length > FLT_EPSILON)) { for(i = 0;i < Device->NumChannels;i++) - { - if(Device->ChannelName[i] == LFE) - continue; State->Late.PanGain[i&3][i] = AmbientGains[i] * LateGain; - } } else { @@ -731,11 +719,7 @@ static ALvoid UpdateDirectPanning(const ALCdevice *Device, const ALfloat *Reflec CalcDirectionCoeffs(pan, coeffs); ComputePanningGains(Device->AmbiCoeffs, Device->NumChannels, coeffs, Gain, DirGains); for(i = 0;i < Device->NumChannels;i++) - { - if(Device->ChannelName[i] == LFE) - continue; State->Late.PanGain[i&3][i] = lerp(AmbientGains[i], DirGains[i], length) * LateGain; - } } } -- 2.11.4.GIT