aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-07-18 17:44:37 -0700
committerChris Robinson <[email protected]>2011-07-18 17:44:37 -0700
commit0ae9638aa58f160a51340ced1812fdafb3b80969 (patch)
tree945bb376ef11e0f0a8aaa314f38d859a2b6c56ac /Alc/hrtf.c
parent55b893c784623c9cbab819ff92d02985f248ec87 (diff)
Add a lost comment
Diffstat (limited to 'Alc/hrtf.c')
-rw-r--r--Alc/hrtf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/hrtf.c b/Alc/hrtf.c
index 33d02869..1f408236 100644
--- a/Alc/hrtf.c
+++ b/Alc/hrtf.c
@@ -106,7 +106,8 @@ ALfloat CalcHrtfDelta(ALfloat oldGain, ALfloat newGain, const ALfloat olddir[3],
}
- // Use the largest of the two changes for the delta factor.
+ // Use the largest of the two changes for the delta factor, and apply a
+ // significance shaping function to it.
delta = __max(gainChange, angleChange) * 2.0f;
return __min(delta, 1.0f);
}