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 /Alc/effects/echo.cpp | |
parent | 98f3e6a16295029129193a073680a70c034703dd (diff) |
Replace macros with constexpr inline functions
Diffstat (limited to 'Alc/effects/echo.cpp')
-rw-r--r-- | Alc/effects/echo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/echo.cpp b/Alc/effects/echo.cpp index b774052a..697d2e88 100644 --- a/Alc/effects/echo.cpp +++ b/Alc/effects/echo.cpp @@ -116,8 +116,8 @@ void ALechoState::update(const ALCcontext *context, const ALeffectslot *slot, co ); ALfloat coeffs[2][MAX_AMBI_COEFFS]; - CalcAngleCoeffs(-F_PI_2*lrpan, 0.0f, spread, coeffs[0]); - CalcAngleCoeffs( F_PI_2*lrpan, 0.0f, spread, coeffs[1]); + CalcAngleCoeffs(al::MathDefs<float>::Pi()*-0.5f*lrpan, 0.0f, spread, coeffs[0]); + CalcAngleCoeffs(al::MathDefs<float>::Pi()* 0.5f*lrpan, 0.0f, spread, coeffs[1]); mOutBuffer = target.Main->Buffer; mOutChannels = target.Main->NumChannels; |