sdrangel/sdrbase/dsp/fftengine.cpp

27 wiersze
562 B
C++
Czysty Zwykły widok Historia

#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 05:27:38 +00:00
FFTEngine* FFTEngine::create(const QString& fftWisdomFileName)
{
#ifdef USE_FFTW
2017-11-12 15:34:38 +00:00
qDebug("FFTEngine::create: using FFTW engine");
2020-03-12 05:27:38 +00:00
return new FFTWEngine(fftWisdomFileName);
#elif USE_KISSFFT
2017-11-12 15:34:38 +00:00
qDebug("FFTEngine::create: using KissFFT engine");
2020-03-12 05:27:38 +00:00
(void) fftWisdomFileName;
return new KissEngine;
#else // USE_KISSFFT
2017-11-12 15:34:38 +00:00
qCritical("FFTEngine::create: no engine built");
return 0;
#endif
}