annotate src/vamp-sdk/FFTimpl.cpp @ 486:42904505a18f

Update MSVC build projects - two solutions, one for plugin SDK and one for host SDK, with each containing the two relevant projects. Default is now release x64.
author Chris Cannam
date Thu, 23 Feb 2017 15:03:29 +0000
parents b409560a805b
children 25e023bad200
rev   line source
Chris@449 1
Chris@449 2 // Override C linkage for KissFFT headers. So long as we have already
Chris@449 3 // included all of the other (system etc) headers KissFFT depends on,
Chris@449 4 // this should work out OK
Chris@449 5 #undef __cplusplus
Chris@449 6
Chris@449 7 namespace Kiss {
Chris@449 8
Chris@449 9 #undef KISS_FFT_H
Chris@449 10 #undef KISS_FTR_H
Chris@449 11 #undef KISS_FFT__GUTS_H
Chris@449 12 #undef FIXED_POINT
Chris@449 13 #undef USE_SIMD
Chris@449 14 #undef kiss_fft_scalar
Chris@449 15
Chris@449 16 #ifdef SINGLE_PRECISION_FFT
Chris@449 17 #pragma message("Using single-precision FFTs")
Chris@449 18 typedef float kiss_fft_scalar;
Chris@449 19 #define kiss_fft_scalar float
Chris@449 20 #else
Chris@449 21 typedef double kiss_fft_scalar;
Chris@449 22 #define kiss_fft_scalar double
Chris@449 23 #endif
Chris@449 24
Chris@449 25 inline void free(void *ptr) { ::free(ptr); }
Chris@449 26 #include "ext/kiss_fft.c"
Chris@449 27 #include "ext/kiss_fftr.c"
Chris@449 28
Chris@449 29 #undef kiss_fft_scalar // leaving only the namespaced typedef
Chris@449 30
Chris@449 31 }
Chris@449 32