From b24ac8fa38af02cc8ec0fe6dbee6f4ca8b728e39 Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 12 May 2017 17:01:46 +0200 Subject: [PATCH] NFM demod: set appropriate audio multiplication factor --- plugins/channelrx/demodnfm/nfmdemod.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/channelrx/demodnfm/nfmdemod.cpp b/plugins/channelrx/demodnfm/nfmdemod.cpp index 4d6f93f27..d2b4aceb6 100644 --- a/plugins/channelrx/demodnfm/nfmdemod.cpp +++ b/plugins/channelrx/demodnfm/nfmdemod.cpp @@ -406,13 +406,13 @@ void NFMDemod::apply() m_interpolator.create(16, m_config.m_inputSampleRate, m_config.m_rfBandwidth / 2.2); m_interpolatorDistanceRemain = 0; m_interpolatorDistance = (Real) m_config.m_inputSampleRate / (Real) m_config.m_audioSampleRate; - m_phaseDiscri.setFMScaling((2.0f*m_config.m_rfBandwidth) / (float) m_config.m_fmDeviation); + m_phaseDiscri.setFMScaling((8.0f*m_config.m_rfBandwidth) / (float) m_config.m_fmDeviation); // integrate 4x factor m_settingsMutex.unlock(); } if (m_config.m_fmDeviation != m_running.m_fmDeviation) { - m_phaseDiscri.setFMScaling((2.0f*m_config.m_rfBandwidth) / (float) m_config.m_fmDeviation); + m_phaseDiscri.setFMScaling((8.0f*m_config.m_rfBandwidth) / (float) m_config.m_fmDeviation); // integrate 4x factor } if ((m_config.m_afBandwidth != m_running.m_afBandwidth) ||