From 9bb91b32bb325e8e8cc8ce853776a36d1d9eb63a Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 31 May 2011 19:57:57 -0700 Subject: [PATCH] fft: s/M_PI/G_PI/ for MSVC --- gst-libs/gst/fft/gstfftf32.c | 4 ++-- gst-libs/gst/fft/gstfftf64.c | 4 ++-- gst-libs/gst/fft/gstffts16.c | 4 ++-- gst-libs/gst/fft/gstffts32.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gst-libs/gst/fft/gstfftf32.c b/gst-libs/gst/fft/gstfftf32.c index 4facb35..fd574e0 100644 --- a/gst-libs/gst/fft/gstfftf32.c +++ b/gst-libs/gst/fft/gstfftf32.c @@ -186,11 +186,11 @@ gst_fft_f32_window (GstFFTF32 * self, gfloat * timedata, GstFFTWindow window) break; case GST_FFT_WINDOW_HAMMING: for (i = 0; i < len; i++) - timedata[i] *= (0.53836 - 0.46164 * cos (2.0 * M_PI * i / len)); + timedata[i] *= (0.53836 - 0.46164 * cos (2.0 * G_PI * i / len)); break; case GST_FFT_WINDOW_HANN: for (i = 0; i < len; i++) - timedata[i] *= (0.5 - 0.5 * cos (2.0 * M_PI * i / len)); + timedata[i] *= (0.5 - 0.5 * cos (2.0 * G_PI * i / len)); break; case GST_FFT_WINDOW_BARTLETT: for (i = 0; i < len; i++) diff --git a/gst-libs/gst/fft/gstfftf64.c b/gst-libs/gst/fft/gstfftf64.c index 5291f62..e737854 100644 --- a/gst-libs/gst/fft/gstfftf64.c +++ b/gst-libs/gst/fft/gstfftf64.c @@ -186,11 +186,11 @@ gst_fft_f64_window (GstFFTF64 * self, gdouble * timedata, GstFFTWindow window) break; case GST_FFT_WINDOW_HAMMING: for (i = 0; i < len; i++) - timedata[i] *= (0.53836 - 0.46164 * cos (2.0 * M_PI * i / len)); + timedata[i] *= (0.53836 - 0.46164 * cos (2.0 * G_PI * i / len)); break; case GST_FFT_WINDOW_HANN: for (i = 0; i < len; i++) - timedata[i] *= (0.5 - 0.5 * cos (2.0 * M_PI * i / len)); + timedata[i] *= (0.5 - 0.5 * cos (2.0 * G_PI * i / len)); break; case GST_FFT_WINDOW_BARTLETT: for (i = 0; i < len; i++) diff --git a/gst-libs/gst/fft/gstffts16.c b/gst-libs/gst/fft/gstffts16.c index 53135d8..212e93f 100644 --- a/gst-libs/gst/fft/gstffts16.c +++ b/gst-libs/gst/fft/gstffts16.c @@ -186,11 +186,11 @@ gst_fft_s16_window (GstFFTS16 * self, gint16 * timedata, GstFFTWindow window) break; case GST_FFT_WINDOW_HAMMING: for (i = 0; i < len; i++) - timedata[i] *= (0.53836 - 0.46164 * cos (2.0 * M_PI * i / len)); + timedata[i] *= (0.53836 - 0.46164 * cos (2.0 * G_PI * i / len)); break; case GST_FFT_WINDOW_HANN: for (i = 0; i < len; i++) - timedata[i] *= (0.5 - 0.5 * cos (2.0 * M_PI * i / len)); + timedata[i] *= (0.5 - 0.5 * cos (2.0 * G_PI * i / len)); break; case GST_FFT_WINDOW_BARTLETT: for (i = 0; i < len; i++) diff --git a/gst-libs/gst/fft/gstffts32.c b/gst-libs/gst/fft/gstffts32.c index 2581318..56ea543 100644 --- a/gst-libs/gst/fft/gstffts32.c +++ b/gst-libs/gst/fft/gstffts32.c @@ -185,11 +185,11 @@ gst_fft_s32_window (GstFFTS32 * self, gint32 * timedata, GstFFTWindow window) break; case GST_FFT_WINDOW_HAMMING: for (i = 0; i < len; i++) - timedata[i] *= (0.53836 - 0.46164 * cos (2.0 * M_PI * i / len)); + timedata[i] *= (0.53836 - 0.46164 * cos (2.0 * G_PI * i / len)); break; case GST_FFT_WINDOW_HANN: for (i = 0; i < len; i++) - timedata[i] *= (0.5 - 0.5 * cos (2.0 * M_PI * i / len)); + timedata[i] *= (0.5 - 0.5 * cos (2.0 * G_PI * i / len)); break; case GST_FFT_WINDOW_BARTLETT: for (i = 0; i < len; i++) -- 2.7.4