Added FFTSize setting

This commit is contained in:
Ryzerth
2021-04-13 18:31:38 +02:00
parent b74043e2ee
commit 48bba00cb3
5 changed files with 81 additions and 50 deletions

View File

@ -97,7 +97,10 @@ void SignalPath::unbindIQStream(dsp::stream<dsp::complex_t>* stream) {
void SignalPath::setFFTSize(int size) {
fftSize = size;
int skip = (sampleRate / fftRate) - fftSize;
reshape.stop();
reshape.setSkip(skip);
reshape.setKeep(fftSize);
reshape.start();
}
void SignalPath::startFFT() {