diff --git a/plugins/channelrx/chanalyzer/chanalyzer.cpp b/plugins/channelrx/chanalyzer/chanalyzer.cpp index 4899e6609..46a770bc4 100644 --- a/plugins/channelrx/chanalyzer/chanalyzer.cpp +++ b/plugins/channelrx/chanalyzer/chanalyzer.cpp @@ -42,7 +42,6 @@ ChannelAnalyzer::ChannelAnalyzer(DeviceAPI *deviceAPI) : m_thread = new QThread(this); m_basebandSink = new ChannelAnalyzerBaseband(); - m_basebandSink->setSampleSink(&m_spectrumVis); m_basebandSink->moveToThread(m_thread); applySettings(m_settings, true); diff --git a/plugins/channelrx/chanalyzer/chanalyzer.h b/plugins/channelrx/chanalyzer/chanalyzer.h index 3cfe8ce2e..e7f210b9f 100644 --- a/plugins/channelrx/chanalyzer/chanalyzer.h +++ b/plugins/channelrx/chanalyzer/chanalyzer.h @@ -60,6 +60,7 @@ public: virtual ~ChannelAnalyzer(); virtual void destroy() { delete this; } SpectrumVis *getSpectrumVis() { return &m_spectrumVis; } + void setSampleSink(BasebandSampleSink *sink) { m_basebandSink->setSampleSink(sink); } int getChannelSampleRate() const { return m_basebandSink->getChannelSampleRate(); } int getDecimation() const { return 1<setGLSpectrum(ui->glSpectrum); m_scopeVis = new ScopeVis(ui->glScope); m_spectrumScopeComboVis = new SpectrumScopeComboVis(m_spectrumVis, m_scopeVis); + m_channelAnalyzer->setSampleSink(m_spectrumScopeComboVis); m_channelAnalyzer->setMessageQueueToGUI(getInputMessageQueue()); ui->deltaFrequencyLabel->setText(QString("%1f").arg(QChar(0x94, 0x03)));