mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-10 10:33:29 -05:00
Channel Analyzer: fixed rational downsampler setting after range calculation
This commit is contained in:
parent
9bcceb8877
commit
7195600cb6
@ -463,15 +463,16 @@ ChannelAnalyzerGUI::~ChannelAnalyzerGUI()
|
||||
|
||||
void ChannelAnalyzerGUI::setSinkSampleRate()
|
||||
{
|
||||
unsigned int channelSampleRate = m_basebandSampleRate / (1<<m_settings.m_log2Decim);
|
||||
unsigned int nominalSinkSampleRate = m_basebandSampleRate / (1<<m_settings.m_log2Decim);
|
||||
|
||||
ui->rationalDownSamplerRate->setValueRange(7, 0.5*channelSampleRate, channelSampleRate);
|
||||
ui->rationalDownSamplerRate->setValueRange(7, 0.5*nominalSinkSampleRate, nominalSinkSampleRate);
|
||||
ui->rationalDownSamplerRate->setValue(m_settings.m_rationalDownSamplerRate);
|
||||
m_settings.m_rationalDownSamplerRate = ui->rationalDownSamplerRate->getValueNew();
|
||||
|
||||
unsigned int sinkSampleRate = getSinkSampleRate();
|
||||
|
||||
qDebug("ChannelAnalyzerGUI::setSinkSampleRate: channelSampleRate: %u sinkSampleRate: %u",
|
||||
channelSampleRate, sinkSampleRate);
|
||||
qDebug("ChannelAnalyzerGUI::setSinkSampleRate: nominalSinkSampleRate: %u sinkSampleRate: %u",
|
||||
nominalSinkSampleRate, sinkSampleRate);
|
||||
|
||||
setFiltersUIBoundaries();
|
||||
|
||||
|
@ -77,7 +77,7 @@ private:
|
||||
ScopeVis* m_scopeVis;
|
||||
MessageQueue m_inputMessageQueue;
|
||||
|
||||
explicit ChannelAnalyzerGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget* parent = 0);
|
||||
explicit ChannelAnalyzerGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget* parent = nullptr);
|
||||
virtual ~ChannelAnalyzerGUI();
|
||||
|
||||
int getSinkSampleRate(); //!< get actual sink sample rate from GUI settings
|
||||
|
Loading…
Reference in New Issue
Block a user