From 41221777baf3b4fc0ef1eafafb0160be8b6c5426 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Mon, 16 Jan 2023 09:23:16 +0100 Subject: [PATCH] gen_audio_resampler_filter: Use SDL_PI_F --- build-scripts/gen_audio_resampler_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-scripts/gen_audio_resampler_filter.c b/build-scripts/gen_audio_resampler_filter.c index fe4e5388c..baae0aeee 100644 --- a/build-scripts/gen_audio_resampler_filter.c +++ b/build-scripts/gen_audio_resampler_filter.c @@ -84,7 +84,7 @@ kaiser_and_sinc(float *table, float *diffs, const int tablelen, const double bet } for (i = 1; i < tablelen; i++) { - const float x = (((float) i) / ((float) RESAMPLER_SAMPLES_PER_ZERO_CROSSING)) * ((float) M_PI); + const float x = (((float) i) / ((float) RESAMPLER_SAMPLES_PER_ZERO_CROSSING)) * SDL_PI_F; table[i] *= sinf(x) / x; diffs[i - 1] = table[i] - table[i - 1]; }