mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 08:28:36 -05:00
BFM demod: fixed stereo L-R injection factor
This commit is contained in:
parent
74e338f092
commit
df95e188e8
@ -144,7 +144,6 @@ void BFMDemod::feed(const SampleVector::const_iterator& begin, const SampleVecto
|
|||||||
m_rdsDemod.process(cr.real(), cr.imag());
|
m_rdsDemod.process(cr.real(), cr.imag());
|
||||||
m_interpolatorRDSDistanceRemain += m_interpolatorRDSDistance;
|
m_interpolatorRDSDistanceRemain += m_interpolatorRDSDistance;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Real sampleStereo;
|
Real sampleStereo;
|
||||||
@ -160,7 +159,7 @@ void BFMDemod::feed(const SampleVector::const_iterator& begin, const SampleVecto
|
|||||||
m_sampleBuffer.push_back(Sample(m_pilotPLLSamples[1] * (1<<15), 0.0)); // debug 38 kHz pilot
|
m_sampleBuffer.push_back(Sample(m_pilotPLLSamples[1] * (1<<15), 0.0)); // debug 38 kHz pilot
|
||||||
}
|
}
|
||||||
|
|
||||||
Complex s(demod*2.0*m_pilotPLLSamples[1], 0);
|
Complex s(demod * 1.17 * m_pilotPLLSamples[1], 0);
|
||||||
|
|
||||||
if (m_interpolatorStereo.interpolate(&m_interpolatorStereoDistanceRemain, s, &cs))
|
if (m_interpolatorStereo.interpolate(&m_interpolatorStereoDistanceRemain, s, &cs))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user