fixed soapy bug

This commit is contained in:
Ryzerth
2020-12-13 14:52:54 +01:00
parent e3db19b16a
commit 46e9266752
9 changed files with 342 additions and 45 deletions

View File

@@ -92,4 +92,20 @@ void SignalPath::bindIQStream(dsp::stream<dsp::complex_t>* stream) {
void SignalPath::unbindIQStream(dsp::stream<dsp::complex_t>* stream) {
split.unbindStream(stream);
}
void SignalPath::setFFTSize(int size) {
fftSize = size;
int skip = (sampleRate / fftRate) - fftSize;
reshape.setSkip(skip);
}
void SignalPath::startFFT() {
reshape.start();
fftHandlerSink.start();
}
void SignalPath::stopFFT() {
reshape.stop();
fftHandlerSink.stop();
}