kopia lustrzana https://github.com/f4exb/sdrangel
NFM demod: set appropriate audio multiplication factor
rodzic
6b4ba98e8e
commit
b24ac8fa38
|
@ -406,13 +406,13 @@ void NFMDemod::apply()
|
||||||
m_interpolator.create(16, m_config.m_inputSampleRate, m_config.m_rfBandwidth / 2.2);
|
m_interpolator.create(16, m_config.m_inputSampleRate, m_config.m_rfBandwidth / 2.2);
|
||||||
m_interpolatorDistanceRemain = 0;
|
m_interpolatorDistanceRemain = 0;
|
||||||
m_interpolatorDistance = (Real) m_config.m_inputSampleRate / (Real) m_config.m_audioSampleRate;
|
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();
|
m_settingsMutex.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_config.m_fmDeviation != m_running.m_fmDeviation)
|
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) ||
|
if ((m_config.m_afBandwidth != m_running.m_afBandwidth) ||
|
||||||
|
|
Ładowanie…
Reference in New Issue