mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-28 21:12:26 -04:00
Channel analyzer: fixed scope vis feed regression. Fixes issue #547
This commit is contained in:
parent
fcff673317
commit
cba77b8f35
@ -42,7 +42,6 @@ ChannelAnalyzer::ChannelAnalyzer(DeviceAPI *deviceAPI) :
|
|||||||
|
|
||||||
m_thread = new QThread(this);
|
m_thread = new QThread(this);
|
||||||
m_basebandSink = new ChannelAnalyzerBaseband();
|
m_basebandSink = new ChannelAnalyzerBaseband();
|
||||||
m_basebandSink->setSampleSink(&m_spectrumVis);
|
|
||||||
m_basebandSink->moveToThread(m_thread);
|
m_basebandSink->moveToThread(m_thread);
|
||||||
|
|
||||||
applySettings(m_settings, true);
|
applySettings(m_settings, true);
|
||||||
|
@ -60,6 +60,7 @@ public:
|
|||||||
virtual ~ChannelAnalyzer();
|
virtual ~ChannelAnalyzer();
|
||||||
virtual void destroy() { delete this; }
|
virtual void destroy() { delete this; }
|
||||||
SpectrumVis *getSpectrumVis() { return &m_spectrumVis; }
|
SpectrumVis *getSpectrumVis() { return &m_spectrumVis; }
|
||||||
|
void setSampleSink(BasebandSampleSink *sink) { m_basebandSink->setSampleSink(sink); }
|
||||||
|
|
||||||
int getChannelSampleRate() const { return m_basebandSink->getChannelSampleRate(); }
|
int getChannelSampleRate() const { return m_basebandSink->getChannelSampleRate(); }
|
||||||
int getDecimation() const { return 1<<m_settings.m_log2Decim; }
|
int getDecimation() const { return 1<<m_settings.m_log2Decim; }
|
||||||
|
@ -403,6 +403,7 @@ ChannelAnalyzerGUI::ChannelAnalyzerGUI(PluginAPI* pluginAPI, DeviceUISet *device
|
|||||||
m_spectrumVis->setGLSpectrum(ui->glSpectrum);
|
m_spectrumVis->setGLSpectrum(ui->glSpectrum);
|
||||||
m_scopeVis = new ScopeVis(ui->glScope);
|
m_scopeVis = new ScopeVis(ui->glScope);
|
||||||
m_spectrumScopeComboVis = new SpectrumScopeComboVis(m_spectrumVis, m_scopeVis);
|
m_spectrumScopeComboVis = new SpectrumScopeComboVis(m_spectrumVis, m_scopeVis);
|
||||||
|
m_channelAnalyzer->setSampleSink(m_spectrumScopeComboVis);
|
||||||
m_channelAnalyzer->setMessageQueueToGUI(getInputMessageQueue());
|
m_channelAnalyzer->setMessageQueueToGUI(getInputMessageQueue());
|
||||||
|
|
||||||
ui->deltaFrequencyLabel->setText(QString("%1f").arg(QChar(0x94, 0x03)));
|
ui->deltaFrequencyLabel->setText(QString("%1f").arg(QChar(0x94, 0x03)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user