diff options
author | Chris Robinson <[email protected]> | 2007-12-18 13:37:07 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-12-18 13:37:07 -0800 |
commit | ebb30ec5b0e219fdf2b21fbfdd1be6e17cb31376 (patch) | |
tree | 75ec156208d2caf3cd0395e437dd8332a66ae8d3 /Alc/ALu.c | |
parent | 168d8e3beee5f809f79f6d0067cd51e25ba65295 (diff) |
Implement AL_AIR_ABSORPTION_FACTOR source property
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -378,6 +378,10 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource, break; } + if(ALSource->AirAbsorptionFactor > 0.0f) + DryGainHF *= pow(ALSource->AirAbsorptionFactor * AIRABSORBGAINHF, + Distance * MetersPerUnit); + *drygainhf = DryGainHF; *wetgainhf = WetGainHF; |