kopia lustrzana https://github.com/f4exb/sdrangel
Channel Analyzer: fixed rational downsampler setting after range calculation
rodzic
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
|
||||
|
|
Ładowanie…
Reference in New Issue