mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
fft: s/M_PI/G_PI/ for MSVC
This commit is contained in:
parent
8f967e9e70
commit
9bb91b32bb
4 changed files with 8 additions and 8 deletions
|
@ -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++)
|
||||
|
|
|
@ -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++)
|
||||
|
|
|
@ -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++)
|
||||
|
|
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue