1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00

NFM demod: correct phase discriminator setFMScaling when applying audio sample rate

This commit is contained in:
f4exb 2020-08-21 19:20:39 +02:00
parent 263a786255
commit 77051b87fd

View File

@ -383,7 +383,7 @@ void NFMDemodSink::applyAudioSampleRate(unsigned int sampleRate)
m_discriCompensation = (sampleRate/48000.0f);
m_discriCompensation *= sqrt(m_discriCompensation);
m_phaseDiscri.setFMScaling(sampleRate / static_cast<float>(m_settings.m_fmDeviation));
m_phaseDiscri.setFMScaling((8.0f*sampleRate) / static_cast<float>(m_settings.m_fmDeviation)); // integrate 4x factor
m_audioFifo.setSize(sampleRate);
m_squelchDelayLine.resize(sampleRate/2);