fft: s/M_PI/G_PI/ for MSVC

This commit is contained in:
David Schleef 2011-05-31 19:57:57 -07:00
parent 8f967e9e70
commit 9bb91b32bb
4 changed files with 8 additions and 8 deletions

View file

@ -186,11 +186,11 @@ gst_fft_f32_window (GstFFTF32 * self, gfloat * timedata, GstFFTWindow window)
break; break;
case GST_FFT_WINDOW_HAMMING: case GST_FFT_WINDOW_HAMMING:
for (i = 0; i < len; i++) 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; break;
case GST_FFT_WINDOW_HANN: case GST_FFT_WINDOW_HANN:
for (i = 0; i < len; i++) 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; break;
case GST_FFT_WINDOW_BARTLETT: case GST_FFT_WINDOW_BARTLETT:
for (i = 0; i < len; i++) for (i = 0; i < len; i++)

View file

@ -186,11 +186,11 @@ gst_fft_f64_window (GstFFTF64 * self, gdouble * timedata, GstFFTWindow window)
break; break;
case GST_FFT_WINDOW_HAMMING: case GST_FFT_WINDOW_HAMMING:
for (i = 0; i < len; i++) 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; break;
case GST_FFT_WINDOW_HANN: case GST_FFT_WINDOW_HANN:
for (i = 0; i < len; i++) 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; break;
case GST_FFT_WINDOW_BARTLETT: case GST_FFT_WINDOW_BARTLETT:
for (i = 0; i < len; i++) for (i = 0; i < len; i++)

View file

@ -186,11 +186,11 @@ gst_fft_s16_window (GstFFTS16 * self, gint16 * timedata, GstFFTWindow window)
break; break;
case GST_FFT_WINDOW_HAMMING: case GST_FFT_WINDOW_HAMMING:
for (i = 0; i < len; i++) 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; break;
case GST_FFT_WINDOW_HANN: case GST_FFT_WINDOW_HANN:
for (i = 0; i < len; i++) 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; break;
case GST_FFT_WINDOW_BARTLETT: case GST_FFT_WINDOW_BARTLETT:
for (i = 0; i < len; i++) for (i = 0; i < len; i++)

View file

@ -185,11 +185,11 @@ gst_fft_s32_window (GstFFTS32 * self, gint32 * timedata, GstFFTWindow window)
break; break;
case GST_FFT_WINDOW_HAMMING: case GST_FFT_WINDOW_HAMMING:
for (i = 0; i < len; i++) 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; break;
case GST_FFT_WINDOW_HANN: case GST_FFT_WINDOW_HANN:
for (i = 0; i < len; i++) 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; break;
case GST_FFT_WINDOW_BARTLETT: case GST_FFT_WINDOW_BARTLETT:
for (i = 0; i < len; i++) for (i = 0; i < len; i++)