diff options
author | Chris Robinson <[email protected]> | 2019-01-06 04:16:51 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-01-06 04:16:51 -0800 |
commit | da3a916042a7ba9426af1d6f03e689dbd7760191 (patch) | |
tree | ab6cfc0d2fd26504a013989af7ecd399a4034914 /OpenAL32/Include | |
parent | 98f3e6a16295029129193a073680a70c034703dd (diff) |
Replace macros with constexpr inline functions
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alu.h | 4 |
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; } |