aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-06 04:16:51 -0800
committerChris Robinson <[email protected]>2019-01-06 04:16:51 -0800
commitda3a916042a7ba9426af1d6f03e689dbd7760191 (patch)
treeab6cfc0d2fd26504a013989af7ecd399a4034914 /OpenAL32/Include
parent98f3e6a16295029129193a073680a70c034703dd (diff)
Replace macros with constexpr inline functions
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index 29667243..ec809589 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -447,8 +447,8 @@ inline void CalcAngleCoeffs(ALfloat azimuth, ALfloat elevation, ALfloat spread,
inline float ScaleAzimuthFront(float azimuth, float scale)
{
ALfloat sign = std::copysign(1.0f, azimuth);
- if(!(std::fabs(azimuth) > F_PI_2))
- return minf(std::fabs(azimuth) * scale, F_PI_2) * sign;
+ if(!(std::fabs(azimuth) > al::MathDefs<float>::Pi()*0.5f))
+ return minf(std::fabs(azimuth) * scale, al::MathDefs<float>::Pi()*0.5f) * sign;
return azimuth;
}