You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
364 B
25 lines
364 B
#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]; |
|
}
|
|
|