bugfix + improved NFM IF noise reduction (less distortion)

This commit is contained in:
AlexandreRouma
2021-12-12 20:06:21 +01:00
parent 15010cff01
commit cee0f75870
2 changed files with 48 additions and 0 deletions

View File

@ -384,6 +384,9 @@ private:
vfo->setSampleRate(selectedDemod->getIFSampleRate(), bandwidth);
}
// Configure bandwidth
setBandwidth(bandwidth);
// Configure FM IF Noise Reduction
setFMIFNREnabled(FMIFNRAllowed ? FMIFNREnabled : false);
@ -395,6 +398,7 @@ private:
setSquelchEnabled(squelchEnabled);
// Configure noise blanker
fmnr.block.setTapCount((selectedDemod->getIFSampleRate() < 100000.0f) ? 8 : 32);
nb.block.setLevel(nbLevel);
setNoiseBlankerEnabled(nbEnabled);