diff --git a/build-scripts/gen_audio_resampler_filter.c b/build-scripts/gen_audio_resampler_filter.c index baae0aeee2..fe4e5388ca 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)) * SDL_PI_F; + const float x = (((float) i) / ((float) RESAMPLER_SAMPLES_PER_ZERO_CROSSING)) * ((float) M_PI); table[i] *= sinf(x) / x; diffs[i - 1] = table[i] - table[i - 1]; }