diff options
Diffstat (limited to 'gr-vocoder/lib/codec2')
-rw-r--r-- | gr-vocoder/lib/codec2/fft.c | 6 | ||||
-rw-r--r-- | gr-vocoder/lib/codec2/kiss_fft.h | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/gr-vocoder/lib/codec2/fft.c b/gr-vocoder/lib/codec2/fft.c index 73c46c846..a33e4d2c8 100644 --- a/gr-vocoder/lib/codec2/fft.c +++ b/gr-vocoder/lib/codec2/fft.c @@ -72,18 +72,18 @@ initialize_fft (int n) void fft (float x[], int n, int isign) { + int isReverse = 0; + int c; + kiss_fft_cfg cfg; if (cfg_forward == NULL) { initialize_fft (n); } - int isReverse = 0; - int c; for (c = 0; c < n * 2; c += 2) { fin[c / 2].r = x[c]; fin[c / 2].i = -x[c + 1]; } - kiss_fft_cfg cfg; if (isign == -1) { cfg = cfg_reverse; diff --git a/gr-vocoder/lib/codec2/kiss_fft.h b/gr-vocoder/lib/codec2/kiss_fft.h index 20621d8b3..64c50f4aa 100644 --- a/gr-vocoder/lib/codec2/kiss_fft.h +++ b/gr-vocoder/lib/codec2/kiss_fft.h @@ -5,7 +5,6 @@ #include <stdio.h> #include <math.h> #include <string.h> -#include <malloc.h> #ifdef __cplusplus extern "C" { |