aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-08-16 18:40:21 -0700
committerChris Robinson <[email protected]>2011-08-16 18:40:21 -0700
commit9f5bf5f9307e86c28ff19a61d422c7b2fe389fdc (patch)
treeaf769fafe6bdb9a8f470862a1b8b4ab01cbbf4ea /Alc/hrtf.c
parent04dad28228a694e681d722826615245466a3aa16 (diff)
Rename minF/maxF/clampF to minf/maxf/clampf for consistency
Diffstat (limited to 'Alc/hrtf.c')
-rw-r--r--Alc/hrtf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/hrtf.c b/Alc/hrtf.c
index e1f02ce7..344b826b 100644
--- a/Alc/hrtf.c
+++ b/Alc/hrtf.c
@@ -89,8 +89,8 @@ ALfloat CalcHrtfDelta(ALfloat oldGain, ALfloat newGain, const ALfloat olddir[3],
ALfloat gainChange, angleChange;
// Calculate the normalized dB gain change.
- newGain = maxF(newGain, 0.0001f);
- oldGain = maxF(oldGain, 0.0001f);
+ newGain = maxf(newGain, 0.0001f);
+ oldGain = maxf(oldGain, 0.0001f);
gainChange = aluFabs(log10(newGain / oldGain) / log10(0.0001f));
// Calculate the normalized listener to source angle change when there is
@@ -109,7 +109,7 @@ ALfloat CalcHrtfDelta(ALfloat oldGain, ALfloat newGain, const ALfloat olddir[3],
// Use the largest of the two changes for the delta factor, and apply a
// significance shaping function to it.
- return clampF(angleChange*2.0f, gainChange*2.0f, 1.0f);
+ return clampf(angleChange*2.0f, gainChange*2.0f, 1.0f);
}
// Calculates static HRIR coefficients and delays for the given polar
@@ -223,7 +223,7 @@ ALuint GetMovingHrtfCoeffs(ALfloat elevation, ALfloat azimuth, ALfloat gain, ALf
ridx[3] = evOffset[evidx[1]] + ((azCount[evidx[1]]-azidx[1]) % azCount[evidx[1]]);
// Calculate the stepping parameters.
- delta = maxF(floor(delta*(Hrtf.sampleRate*0.015f) + 0.5), 1.0f);
+ delta = maxf(floor(delta*(Hrtf.sampleRate*0.015f) + 0.5), 1.0f);
step = 1.0f / delta;
// Calculate the normalized and attenuated target HRIR coefficients using