diff options
author | Chris Robinson <[email protected]> | 2022-01-31 17:18:46 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-01 04:04:24 -0800 |
commit | f63594d027889690936f8564ea822e4ab5068245 (patch) | |
tree | b6485ac901bd28514d0fb1307c927fbbeb09d5b8 /alc/alu.cpp | |
parent | 1c9f791e4f2c36e1c7077b8241f08368af2e93c4 (diff) |
Avoid a magic number
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r-- | alc/alu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp index 13e36d6a..62fc23dd 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -1392,7 +1392,7 @@ void CalcAttnSourceParams(Voice *voice, const VoiceProps *props, const ContextBa /* Calculate directional soundcones */ if(directional && props->InnerAngle < 360.0f) { - constexpr float Rad2Deg{5.72957795130823229e+01f/*180/pi*/}; + constexpr float Rad2Deg{static_cast<float>(180.0 / al::numbers::pi)}; const float Angle{Rad2Deg*2.0f * std::acos(-Direction.dot_product(ToSource)) * ConeScale}; float ConeGain, ConeHF; |