1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-15 21:01:45 -05:00
sdrangel/sdrbase/dsp/fftengine.cpp

26 lines
481 B
C++
Raw Normal View History

#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
2017-11-12 10:34:38 -05:00
qDebug("FFTEngine::create: using FFTW engine");
return new FFTWEngine;
#elif USE_KISSFFT
2017-11-12 10:34:38 -05:00
qDebug("FFTEngine::create: using KissFFT engine");
return new KissEngine;
#else // USE_KISSFFT
2017-11-12 10:34:38 -05:00
qCritical("FFTEngine::create: no engine built");
return 0;
#endif
}