1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 16:38:37 -05:00
sdrangel/sdrbase/dsp/fftengine.cpp
2017-11-12 16:34:38 +01:00

27 lines
499 B
C++

#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()
{
#ifdef USE_FFTW
qDebug("FFTEngine::create: using FFTW engine");
return new FFTWEngine;
#endif // USE_FFTW
#ifdef USE_KISSFFT
qDebug("FFTEngine::create: using KissFFT engine");
return new KissEngine;
#endif // USE_KISSFFT
qCritical("FFTEngine::create: no engine built");
return NULL;
}