From be3802af689cfddc6fe167de17ff31465a7031f1 Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 31 Mar 2021 03:25:00 +0200 Subject: [PATCH] DATV Demod: request channel sample rate twice the symbol rate not the whole baseband --- plugins/channelrx/demoddatv/datvdemodbaseband.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/channelrx/demoddatv/datvdemodbaseband.cpp b/plugins/channelrx/demoddatv/datvdemodbaseband.cpp index 41e939b28..69c132ce6 100644 --- a/plugins/channelrx/demoddatv/datvdemodbaseband.cpp +++ b/plugins/channelrx/demoddatv/datvdemodbaseband.cpp @@ -150,10 +150,12 @@ void DATVDemodBaseband::applySettings(const DATVDemodSettings& settings, bool fo { qDebug("DATVDemodBaseband::applySettings"); - if ((settings.m_centerFrequency != m_settings.m_centerFrequency)|| force) + if ((settings.m_centerFrequency != m_settings.m_centerFrequency) || + (settings.m_symbolRate != m_settings.m_symbolRate) || force) { - unsigned int desiredSampleRate = m_channelizer->getBasebandSampleRate(); + unsigned int desiredSampleRate = 2 * settings.m_symbolRate; // m_channelizer->getBasebandSampleRate(); m_channelizer->setChannelization(desiredSampleRate, settings.m_centerFrequency); + m_sampleFifo.setSize(SampleSinkFifo::getSizePolicy(m_channelizer->getBasebandSampleRate())); m_sink.applyChannelSettings(m_channelizer->getChannelSampleRate(), m_channelizer->getChannelFrequencyOffset()); }