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-01 21:59:21 +01:00
1 parent fd8184e828
commit fa17ef371c
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