mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-22 08:04:49 -05:00
30 lines
424 B
C++
30 lines
424 B
C++
#include "dsp/kissengine.h"
|
|
|
|
void KissEngine::configure(int n, bool inverse)
|
|
{
|
|
m_fft.configure(n, inverse);
|
|
if(n > m_in.size())
|
|
m_in.resize(n);
|
|
if(n > m_out.size())
|
|
m_out.resize(n);
|
|
}
|
|
|
|
void KissEngine::transform()
|
|
{
|
|
m_fft.transform(&m_in[0], &m_out[0]);
|
|
}
|
|
|
|
Complex* KissEngine::in()
|
|
{
|
|
return &m_in[0];
|
|
}
|
|
|
|
Complex* KissEngine::out()
|
|
{
|
|
return &m_out[0];
|
|
}
|
|
|
|
void KissEngine::setReuse(bool reuse)
|
|
{
|
|
(void) reuse;
|
|
} |