mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 17:58:43 -05:00
AM demod: fixed audio interpolator. Issue #354
This commit is contained in:
parent
4a6603f470
commit
1e3980c5e0
@ -130,14 +130,11 @@ void AMDemod::feed(const SampleVector::const_iterator& begin, const SampleVector
|
|||||||
|
|
||||||
if (m_interpolatorDistance < 1.0f) // interpolate
|
if (m_interpolatorDistance < 1.0f) // interpolate
|
||||||
{
|
{
|
||||||
processOneSample(ci);
|
while (!m_interpolator.interpolate(&m_interpolatorDistanceRemain, c, &ci))
|
||||||
|
|
||||||
while (m_interpolator.interpolate(&m_interpolatorDistanceRemain, c, &ci))
|
|
||||||
{
|
{
|
||||||
processOneSample(ci);
|
processOneSample(ci);
|
||||||
}
|
|
||||||
|
|
||||||
m_interpolatorDistanceRemain += m_interpolatorDistance;
|
m_interpolatorDistanceRemain += m_interpolatorDistance;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else // decimate
|
else // decimate
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user