From 4369cb9ca99fcf17bbd0359c8ee8329ba113a482 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 17 Sep 2009 07:16:20 +0200 Subject: [PATCH] src/spectral/fft.c: use native fftw types, add warning if single fftw is used with aubio double --- src/spectral/fft.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/spectral/fft.c b/src/spectral/fft.c index 6c8c578a..31159a56 100644 --- a/src/spectral/fft.c +++ b/src/spectral/fft.c @@ -35,9 +35,12 @@ #endif #if FFTW3F_SUPPORT -#define real_t smpl_t +#if !AUBIO_SINGLE_PRECISION +#warning "Using aubio in double precision with fftw3 in single precision" +#endif +#define real_t float #else -#define real_t lsmp_t +#define real_t double #endif struct _aubio_fft_t { -- 2.26.2