mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
Channel Analyzer NG: handle rational downsampler in the GUI
This commit is contained in:
parent
2008b5fbde
commit
5dfe2a7a2a
@ -190,10 +190,26 @@ void ChannelAnalyzerNGGUI::on_deltaMinus_toggled(bool minus)
|
||||
}
|
||||
}
|
||||
|
||||
void ChannelAnalyzerNGGUI::on_channelSampleRate_changed(quint64 value)
|
||||
{
|
||||
if (ui->useRationalDownsampler->isChecked())
|
||||
{
|
||||
qDebug("ChannelAnalyzerNGGUI::on_channelSampleRate_changed: %llu", value);
|
||||
setNewFinalRate(m_spanLog2);
|
||||
applySettings();
|
||||
}
|
||||
}
|
||||
|
||||
void ChannelAnalyzerNGGUI::on_useRationalDownsampler_toggled(bool checked)
|
||||
{
|
||||
setNewFinalRate(m_spanLog2);
|
||||
applySettings();
|
||||
}
|
||||
|
||||
int ChannelAnalyzerNGGUI::getRequestedChannelSampleRate()
|
||||
{
|
||||
if (ui->useRationalDownsampler->isChecked()) {
|
||||
return ui->channelSampleRate->getValue();
|
||||
return ui->channelSampleRate->getValueNew();
|
||||
} else {
|
||||
return m_channelizer->getInputSampleRate();
|
||||
}
|
||||
|
@ -61,6 +61,8 @@ private slots:
|
||||
void channelizerInputSampleRateChanged();
|
||||
void on_deltaFrequency_changed(quint64 value);
|
||||
void on_deltaMinus_toggled(bool minus);
|
||||
void on_channelSampleRate_changed(quint64 value);
|
||||
void on_useRationalDownsampler_toggled(bool checked);
|
||||
void on_BW_valueChanged(int value);
|
||||
void on_lowCut_valueChanged(int value);
|
||||
void on_spanLog2_currentIndexChanged(int index);
|
||||
|
@ -32,6 +32,7 @@ public:
|
||||
void setBold(bool bold);
|
||||
void setColorMapper(ColorMapper colorMapper);
|
||||
quint64 getValue() const { return m_value; }
|
||||
quint64 getValueNew() const { return m_valueNew; }
|
||||
|
||||
signals:
|
||||
void changed(quint64 value);
|
||||
|
Loading…
Reference in New Issue
Block a user