You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
562 B
26 lines
562 B
#include "dsp/fftengine.h" |
|
#ifdef USE_KISSFFT |
|
#include "dsp/kissengine.h" |
|
#endif |
|
#ifdef USE_FFTW |
|
#include "dsp/fftwengine.h" |
|
#endif // USE_FFTW |
|
|
|
FFTEngine::~FFTEngine() |
|
{ |
|
} |
|
|
|
FFTEngine* FFTEngine::create(const QString& fftWisdomFileName) |
|
{ |
|
#ifdef USE_FFTW |
|
qDebug("FFTEngine::create: using FFTW engine"); |
|
return new FFTWEngine(fftWisdomFileName); |
|
#elif USE_KISSFFT |
|
qDebug("FFTEngine::create: using KissFFT engine"); |
|
(void) fftWisdomFileName; |
|
return new KissEngine; |
|
#else // USE_KISSFFT |
|
qCritical("FFTEngine::create: no engine built"); |
|
return 0; |
|
#endif |
|
}
|
|
|