aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.c
diff options
context:
space:
mode:
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);
}