From 2172827f43c8b073380ad60f92fcdc8306157e84 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 9 Oct 2010 15:24:24 -0700 Subject: [PATCH] Simplify a calculation --- Alc/ALu.c | 3 +-- 1 file changed, 1 insertion(+), 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); } } -- 2.11.4.GIT