mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-07-30 20:52:26 -04:00
Channel Analyzer NG: input and channel sample rate getters
This commit is contained in:
parent
3a32d5aec3
commit
3d972e8565
@ -42,6 +42,7 @@ public:
|
|||||||
bool ssb);
|
bool ssb);
|
||||||
|
|
||||||
int getInputSampleRate() const { return m_running.m_inputSampleRate; }
|
int getInputSampleRate() const { return m_running.m_inputSampleRate; }
|
||||||
|
int getChannelSampleRate() const { return m_running.m_channelSampleRate; }
|
||||||
Real getMagSq() const { return m_magsq; }
|
Real getMagSq() const { return m_magsq; }
|
||||||
|
|
||||||
virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool positiveOnly);
|
virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool positiveOnly);
|
||||||
|
@ -393,7 +393,7 @@ bool ChannelAnalyzerNGGUI::setNewRate(int spanLog2)
|
|||||||
qDebug("ChannelAnalyzerNGGUI::setNewRate");
|
qDebug("ChannelAnalyzerNGGUI::setNewRate");
|
||||||
|
|
||||||
ui->channelSampleRate->setValueRange(7, 0, m_channelAnalyzer->getInputSampleRate());
|
ui->channelSampleRate->setValueRange(7, 0, m_channelAnalyzer->getInputSampleRate());
|
||||||
ui->channelSampleRate->setValue(m_channelAnalyzer->getInputSampleRate());
|
ui->channelSampleRate->setValue(m_channelAnalyzer->getChannelSampleRate());
|
||||||
|
|
||||||
if ((spanLog2 < 0) || (spanLog2 > 6)) {
|
if ((spanLog2 < 0) || (spanLog2 > 6)) {
|
||||||
return false;
|
return false;
|
||||||
@ -401,7 +401,7 @@ bool ChannelAnalyzerNGGUI::setNewRate(int spanLog2)
|
|||||||
|
|
||||||
m_spanLog2 = spanLog2;
|
m_spanLog2 = spanLog2;
|
||||||
//m_rate = 48000 / (1<<spanLog2);
|
//m_rate = 48000 / (1<<spanLog2);
|
||||||
m_rate = m_channelAnalyzer->getInputSampleRate() / (1<<spanLog2);
|
m_rate = m_channelAnalyzer->getChannelSampleRate() / (1<<spanLog2);
|
||||||
|
|
||||||
setFiltersUIBoundaries();
|
setFiltersUIBoundaries();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user