aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-10-09 15:24:24 -0700
committerChris Robinson <[email protected]>2010-10-09 15:24:24 -0700
commit2172827f43c8b073380ad60f92fcdc8306157e84 (patch)
treee095fd643071fa85274fc2a0debd85a298afe4af /Alc/ALu.c
parent90e9cd970a345fece55917a7239832060d7ae9d0 (diff)
Simplify a calculation
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 1299e98c..af6c8b39 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -528,8 +528,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
Slot->effect.Reverb.DecayTime) *
-60.0 / 20.0);
- WetGainHF[i] *= aluPow(10.0f,
- log10(Slot->effect.Reverb.AirAbsorptionGainHF) *
+ WetGainHF[i] *= aluPow(Slot->effect.Reverb.AirAbsorptionGainHF,
AirAbsorptionFactor * effectiveDist);
}
}