mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
Don't decimate the audio signal if not needed.
This commit is contained in:
parent
2fddaff6d2
commit
5888645957
@ -403,7 +403,12 @@ void DABDemodSink::audio(int16_t *buffer, int size, int samplerate, bool stereo)
|
||||
ci.real(0.0f);
|
||||
ci.imag(0.0f);
|
||||
}
|
||||
if (m_audioInterpolatorDistance < 1.0f) // interpolate
|
||||
|
||||
if (m_audioInterpolatorDistance == 1.0f)
|
||||
{
|
||||
processOneAudioSample(ci);
|
||||
}
|
||||
else if (m_audioInterpolatorDistance < 1.0f) // interpolate
|
||||
{
|
||||
while (!m_audioInterpolator.interpolate(&m_audioInterpolatorDistanceRemain, ci, &ca))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user