2014-05-18 11:52:39 -04:00
|
|
|
#include "dsp/fftengine.h"
|
|
|
|
#ifdef USE_KISSFFT
|
|
|
|
#include "dsp/kissengine.h"
|
|
|
|
#endif
|
|
|
|
#ifdef USE_FFTW
|
|
|
|
#include "dsp/fftwengine.h"
|
|
|
|
#endif // USE_FFTW
|
|
|
|
|
|
|
|
FFTEngine::~FFTEngine()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2020-03-12 01:27:38 -04:00
|
|
|
FFTEngine* FFTEngine::create(const QString& fftWisdomFileName)
|
2014-05-18 11:52:39 -04:00
|
|
|
{
|
|
|
|
#ifdef USE_FFTW
|
2017-11-12 10:34:38 -05:00
|
|
|
qDebug("FFTEngine::create: using FFTW engine");
|
2020-03-12 01:27:38 -04:00
|
|
|
return new FFTWEngine(fftWisdomFileName);
|
2018-02-21 21:04:42 -05:00
|
|
|
#elif USE_KISSFFT
|
2017-11-12 10:34:38 -05:00
|
|
|
qDebug("FFTEngine::create: using KissFFT engine");
|
2020-03-12 01:27:38 -04:00
|
|
|
(void) fftWisdomFileName;
|
2014-05-18 11:52:39 -04:00
|
|
|
return new KissEngine;
|
2018-02-21 21:04:42 -05:00
|
|
|
#else // USE_KISSFFT
|
2017-11-12 10:34:38 -05:00
|
|
|
qCritical("FFTEngine::create: no engine built");
|
2018-02-21 21:04:42 -05:00
|
|
|
return 0;
|
|
|
|
#endif
|
2014-05-18 11:52:39 -04:00
|
|
|
}
|