aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-05-27 03:40:52 -0700
committerChris Robinson <[email protected]>2017-05-27 03:40:52 -0700
commitc51df897db79a9c3190b6571618c3f2010a36de5 (patch)
tree71d53025a1619f5c6a93c3d07f33d395136f9c20 /Alc/ALu.c
parentc4ef7399f84f4085ceb77f9897f9c9502d2cfd0d (diff)
Use normal air absorption for the sends
Applies just for the normal air absorption which uses the air absorption factor, not the automated decay applied when WetGainAuto is enabled.
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 103d7962..7bf6f2ff 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -1259,7 +1259,7 @@ static void CalcAttnSourceParams(ALvoice *voice, const struct ALvoiceProps *prop
for(i = 0;i < NumSends;i++)
{
if(RoomRolloff[i] > 0.0f)
- WetGainHF[i] *= powf(RoomAirAbsorption[i], absorb*RoomRolloff[i]);
+ WetGainHF[i] *= powf(AIRABSORBGAINHF, absorb*RoomRolloff[i]);
}
}