sdl_audio: use float M_PI for S_CURVE

meant for floats, prevents implicit double conversions
This commit is contained in:
Alug committed 2025-12-04 17:51:59 +01:00
1 parent 4a56819bc3
commit 1cae09fa11
1 file changed
+1 -1
+1 -1
View File
@@ -44,7 +44,7 @@ write netcode into the sound code, OKAY?
#include <fluidsynth.h>
#endif
#define S_CURVE(x, s, e) sinf(M_PI / 2.0f * (((x) - (s)) / ((e) - (s))))
#define S_CURVE(x, s, e) sinf(M_PIf / 2.0f * (((x) - (s)) / ((e) - (s))))
/// ------------------------
/// Audio Declarations