Don't decimate the audio signal if not needed.

pull/2226/head
Jean-François DEL NERO 2024-08-02 12:23:27 +02:00
rodzic 2fddaff6d2
commit 5888645957
1 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -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))
{