1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-16 05:11:49 -05:00

DATV Demod: request channel sample rate twice the symbol rate not the whole baseband

This commit is contained in:
f4exb 2021-03-31 03:25:00 +02:00
parent fb3933c007
commit be3802af68

View File

@ -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());
}