diff options
author | Chris Robinson <[email protected]> | 2011-05-06 00:38:10 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-05-06 00:38:10 -0700 |
commit | 1363e044acb52e9e51e2b3dcdc6dbad823ccb06c (patch) | |
tree | 07d01ec3fa48890b48cb0da4a47095084bd5c164 /Alc/ALu.c | |
parent | 9967d4eadded7cfc0c8424d6ffd756b85ba6f4ef (diff) |
Remove the head_dampen option
Now that HRTF is properly supported, it's not needed
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -666,20 +666,6 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) ConeHF = 1.0f; } - // Apply some high-frequency attenuation for sources behind the listener - // NOTE: This should be aluDotproduct({0,0,-1}, ListenerToSource), however - // that is equivalent to aluDotproduct({0,0,1}, SourceToListener), which is - // the same as SourceToListener[2] - Angle = aluAcos(SourceToListener[2]) * 180.0f/M_PI; - // Sources within the minimum distance attenuate less - if(OrigDist < MinDist) - Angle *= OrigDist/MinDist; - if(Angle > 90.0f) - { - ALfloat scale = (Angle-90.0f) / (180.1f-90.0f); // .1 to account for fp errors - ConeHF *= 1.0f - (Device->HeadDampen*scale); - } - DryGain *= ConeVolume; if(ALSource->DryGainHFAuto) DryGainHF *= ConeHF; |