Browse Source

Channel Analyzer: update rational downsampler sample rate attribute after boudaries re-calculation

chirpmodem-v8.0.0
f4exb 8 years ago
parent
commit
8ebbfad6e5
  1. 3
      plugins/channelrx/chanalyzer/chanalyzergui.cpp

3
plugins/channelrx/chanalyzer/chanalyzergui.cpp

@ -188,9 +188,10 @@ bool ChannelAnalyzerGUI::handleMessage(const Message& message) @@ -188,9 +188,10 @@ bool ChannelAnalyzerGUI::handleMessage(const Message& message)
{
if (ChannelAnalyzer::MsgReportChannelSampleRateChanged::match(message))
{
qDebug() << "ChannelAnalyzerGUI::handleMessage: MsgReportChannelSampleRateChanged";
qDebug() << "ChannelAnalyzerGUI::handleMessage: MsgReportChannelSampleRateChanged:" << m_channelAnalyzer->getInputSampleRate();
ui->channelSampleRate->setValueRange(7, 0.501*m_channelAnalyzer->getInputSampleRate(), m_channelAnalyzer->getInputSampleRate());
ui->channelSampleRate->setValue(m_settings.m_downSampleRate);
m_settings.m_downSampleRate = ui->channelSampleRate->getValueNew();
setNewFinalRate();
return true;

Loading…
Cancel
Save