From f63594d027889690936f8564ea822e4ab5068245 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 31 Jan 2022 17:18:46 -0800 Subject: Avoid a magic number --- alc/alu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alc/alu.cpp') 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(180.0 / al::numbers::pi)}; const float Angle{Rad2Deg*2.0f * std::acos(-Direction.dot_product(ToSource)) * ConeScale}; float ConeGain, ConeHF; -- cgit v1.2.3