aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
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 /OpenAL32
parent04dad28228a694e681d722826615245466a3aa16 (diff)
Rename minF/maxF/clampF to minf/maxf/clampf for consistency
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alu.h8
-rw-r--r--OpenAL32/alFilter.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index 45eb09c5..bddc2cf8 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -127,12 +127,12 @@ enum DistanceModel {
#endif
-static __inline ALfloat minF(ALfloat a, ALfloat b)
+static __inline ALfloat minf(ALfloat a, ALfloat b)
{ return ((a > b) ? b : a); }
-static __inline ALfloat maxF(ALfloat a, ALfloat b)
+static __inline ALfloat maxf(ALfloat a, ALfloat b)
{ return ((a > b) ? a : b); }
-static __inline ALfloat clampF(ALfloat val, ALfloat mn, ALfloat mx)
-{ return minF(mx, maxF(mn, val)); }
+static __inline ALfloat clampf(ALfloat val, ALfloat min, ALfloat max)
+{ return minf(max, maxf(min, val)); }
static __inline ALuint minu(ALuint a, ALuint b)
{ return ((a > b) ? b : a); }
diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c
index 13391ab0..5e73cbae 100644
--- a/OpenAL32/alFilter.c
+++ b/OpenAL32/alFilter.c
@@ -387,7 +387,7 @@ ALfloat lpCoeffCalc(ALfloat g, ALfloat cw)
* head towards 1, which will flatten the signal */
if(g < 0.9999f) /* 1-epsilon */
{
- g = maxF(g, 0.01f);
+ g = maxf(g, 0.01f);
a = (1 - g*cw - aluSqrt(2*g*(1-cw) - g*g*(1 - cw*cw))) /
(1 - g);
}