Mercurial > hg > vamp-plugin-sdk
view src/vamp-sdk/FFTimpl.cpp @ 492:fb3e0ca3e700
Added tag vamp-plugin-sdk-v2.7 for changeset 124752918a1b
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2017 15:46:22 +0000 |
parents | b409560a805b |
children | 25e023bad200 |
line wrap: on
line source
// Override C linkage for KissFFT headers. So long as we have already // included all of the other (system etc) headers KissFFT depends on, // this should work out OK #undef __cplusplus namespace Kiss { #undef KISS_FFT_H #undef KISS_FTR_H #undef KISS_FFT__GUTS_H #undef FIXED_POINT #undef USE_SIMD #undef kiss_fft_scalar #ifdef SINGLE_PRECISION_FFT #pragma message("Using single-precision FFTs") typedef float kiss_fft_scalar; #define kiss_fft_scalar float #else typedef double kiss_fft_scalar; #define kiss_fft_scalar double #endif inline void free(void *ptr) { ::free(ptr); } #include "ext/kiss_fft.c" #include "ext/kiss_fftr.c" #undef kiss_fft_scalar // leaving only the namespaced typedef }