From 7044486fdcc4d806f46c35ec4787ae48fa26c369 Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Sat, 6 Oct 2007 16:36:00 +0000 Subject: Removed fftw_plan from xtraction functions. Created new init function xtract_init_fft() for creating plans, which have global scope. Updated examples to reflect the change. New configure option: --with-fft_optimisation (0 = FFTW_ESTIMATE, 1 = FFTW_MEASURE, 2 = FFTW_PATIENT). --- src/xtract_macros_private.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/xtract_macros_private.h') diff --git a/src/xtract_macros_private.h b/src/xtract_macros_private.h index 7f06960..bfe0b63 100644 --- a/src/xtract_macros_private.h +++ b/src/xtract_macros_private.h @@ -49,9 +49,6 @@ (= SR_LOWER_LIMIT / FFT_BANDS_MAX*/ #define XTRACT_SPEC_BW_MAX 12000.0 /* SR_UPPER_LIMIT / FFT_BANDS_MIN */ #define XTRACT_SPEC_BW_DEF 43.066 /* SR_DEFAULT / FFT_BANDS_DEF */ - -#ifdef __cplusplus -} -#endif +#define XTRACT_ARRAY_ELEMENTS(_array) (sizeof(_array)/sizeof(_array[0])) #endif -- cgit v1.2.3