aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 1f755621..cb943eca 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -388,7 +388,7 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource,
absorb = (ALSource->AirAbsorptionFactor*AIRABSORBGAINDBHF) *
(Distance*MetersPerUnit);
// Convert dB to linear gain before applying
- absorb = pow(0.5, absorb/-6.0);
+ absorb = pow(10.0, absorb/20.0);
DryGainHF *= absorb;
WetGainHF *= absorb;
}