Additional low-low bw mode for audio input

This commit is contained in:
Charles J. Cliffe 2015-12-29 23:44:00 -05:00
parent 68c409486e
commit 6bc79b147e

View File

@ -442,7 +442,11 @@ void CubicSDR::setSampleRate(long long rate_in) {
sdrThread->setSampleRate(sampleRate);
setFrequency(frequency);
if (rate_in <= CHANNELIZER_RATE_MAX) {
if (rate_in <= CHANNELIZER_RATE_MAX / 2) {
appframe->setMainWaterfallFFTSize(512);
appframe->getWaterfallDataThread()->getProcessor()->setHideDC(false);
spectrumVisualThread->getProcessor()->setHideDC(false);
} else if (rate_in <= CHANNELIZER_RATE_MAX) {
appframe->setMainWaterfallFFTSize(1024);
appframe->getWaterfallDataThread()->getProcessor()->setHideDC(false);
spectrumVisualThread->getProcessor()->setHideDC(false);