mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 01:39:05 -05:00
ATV Demod: make sure channel marker is correctly updated when channel sample rate changes
This commit is contained in:
parent
fa3e39859a
commit
3e9db6af09
@ -151,7 +151,7 @@ void ATVDemod::InitATVParameters(int intMsps, int intLineDurationUs, int intTopD
|
||||
m_objRunning.m_blnHSync = blnHSync;
|
||||
m_objRunning.m_blnVSync = blnVSync;
|
||||
|
||||
qDebug() << "ATV Settings "
|
||||
qDebug() << "ATVDemod::InitATVParameters:"
|
||||
<< " - Msps: " << intMsps
|
||||
<< " - Line us: " << intLineDurationUs
|
||||
<< " - Top us: " << intTopDurationUs
|
||||
|
@ -180,6 +180,7 @@ void ATVDemodGUI::viewChanged()
|
||||
|
||||
void ATVDemodGUI::channelSampleRateChanged()
|
||||
{
|
||||
qDebug("ATVDemodGUI::channelSampleRateChanged");
|
||||
applySettings();
|
||||
}
|
||||
|
||||
@ -299,7 +300,12 @@ void ATVDemodGUI::applySettings()
|
||||
enmSelectedModulation, ui->hSync->isChecked(),
|
||||
ui->vSync->isChecked());
|
||||
|
||||
m_objChannelMarker.setBandwidth(m_objATVDemod->GetSampleRate());
|
||||
qDebug() << "ATVDemodGUI::applySettings:"
|
||||
<< " m_objChannelizer.inputSampleRate: " << m_objChannelizer->getInputSampleRate()
|
||||
<< " m_objATVDemod.sampleRate: " << m_objATVDemod->GetSampleRate();
|
||||
|
||||
//m_objChannelMarker.setBandwidth(m_objATVDemod->GetSampleRate()); it is unreliable at this moment
|
||||
m_objChannelMarker.setBandwidth(m_objChannelizer->getInputSampleRate());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user