aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-02-05 11:06:10 -0800
committerChris Robinson <[email protected]>2016-02-05 11:06:10 -0800
commit127c7e3b8cb949dc405660e9429ff4e8b475bf60 (patch)
tree7c51837f02e898fe844f6ceeccdac2a6b260e005
parent3cac4dff95b7bf5c95c0fa7b70dc3423d4694b24 (diff)
Don't explicitly check for LFE
It's going to be set to 0 gain anyway
-rw-r--r--Alc/effects/reverb.c16
1 files changed, 0 insertions, 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;
- }
}
}