From 3bda397e7afa981011b40a16294a09140508506e Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 12 Mar 2017 01:26:12 +0100 Subject: [PATCH] ATV Modulator: process channelizer sample rate change in the GUI --- plugins/channeltx/modatv/atvmodgui.cpp | 6 ++++++ plugins/channeltx/modatv/atvmodgui.h | 1 + 2 files changed, 7 insertions(+) diff --git a/plugins/channeltx/modatv/atvmodgui.cpp b/plugins/channeltx/modatv/atvmodgui.cpp index ced7cf3bf..31641e325 100644 --- a/plugins/channeltx/modatv/atvmodgui.cpp +++ b/plugins/channeltx/modatv/atvmodgui.cpp @@ -181,6 +181,11 @@ void ATVModGUI::viewChanged() applySettings(); } +void ATVModGUI::channelizerOutputSampleRateChanged() +{ + ui->rfBW->setMaximum(m_channelizer->getOutputSampleRate() / 100000); +} + void ATVModGUI::handleSourceMessages() { Message* message; @@ -352,6 +357,7 @@ ATVModGUI::ATVModGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* pa m_channelizer = new UpChannelizer(m_atvMod); m_threadedChannelizer = new ThreadedBasebandSampleSource(m_channelizer, this); //m_pluginAPI->addThreadedSink(m_threadedChannelizer); + connect(m_channelizer, SIGNAL(outputSampleRateChanged()), this, SLOT(channelizerOutputSampleRateChanged())); m_deviceAPI->addThreadedSource(m_threadedChannelizer); connect(&m_pluginAPI->getMainWindow()->getMasterTimer(), SIGNAL(timeout()), this, SLOT(tick())); diff --git a/plugins/channeltx/modatv/atvmodgui.h b/plugins/channeltx/modatv/atvmodgui.h index 9364b6130..abf6c325c 100644 --- a/plugins/channeltx/modatv/atvmodgui.h +++ b/plugins/channeltx/modatv/atvmodgui.h @@ -56,6 +56,7 @@ public: private slots: void viewChanged(); + void channelizerOutputSampleRateChanged(); void handleSourceMessages(); void on_deltaFrequency_changed(quint64 value);