sdl_audio: use float M_PI for S_CURVE
meant for floats, prevents implicit double conversions
This commit is contained in:
1 parent
fd8184e828
commit
fa17ef371c
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user