From 1a47cf54485663a03457557103bc6b801de9cdef Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Mon, 16 Jan 2023 10:04:22 +0100
Subject: [PATCH] Revert "gen_audio_resampler_filter: Use SDL_PI_F"
This reverts commit 41221777baf3b4fc0ef1eafafb0160be8b6c5426.
---
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 baae0aeee2e5..fe4e5388ca3f 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];
}