From 567c4b194d960850d9d62aa99d6477f219ee1270 Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 1 Nov 2019 10:27:51 +0100 Subject: [PATCH] TestMOSync: corrected sample rate change handling --- plugins/samplemimo/testmosync/testmosync.cpp | 7 +++---- plugins/samplemimo/testmosync/testmosyncgui.cpp | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/samplemimo/testmosync/testmosync.cpp b/plugins/samplemimo/testmosync/testmosync.cpp index ee60dbbfa..7bf1e044f 100644 --- a/plugins/samplemimo/testmosync/testmosync.cpp +++ b/plugins/samplemimo/testmosync/testmosync.cpp @@ -277,7 +277,7 @@ bool TestMOSync::applySettings(const TestMOSyncSettings& settings, bool force) if (m_sinkThread) { m_sinkThread->setLog2Interpolation(settings.m_log2Interp); - qDebug() << "BladeRF2Input::applySettings: set interpolation to " << (1<getDeviceEngineInputMessageQueue()->push(notif0); - DSPMIMOSignalNotification *notif1 = new DSPMIMOSignalNotification(sampleRate, settings.m_centerFrequency, false, 1); + DSPMIMOSignalNotification *notif1 = new DSPMIMOSignalNotification(settings.m_sampleRate, settings.m_centerFrequency, false, 1); m_deviceAPI->getDeviceEngineInputMessageQueue()->push(notif1); } diff --git a/plugins/samplemimo/testmosync/testmosyncgui.cpp b/plugins/samplemimo/testmosync/testmosyncgui.cpp index 4c0054484..c8d87aa31 100644 --- a/plugins/samplemimo/testmosync/testmosyncgui.cpp +++ b/plugins/samplemimo/testmosync/testmosyncgui.cpp @@ -82,6 +82,7 @@ TestMOSyncGui::TestMOSyncGui(DeviceUISet *deviceUISet, QWidget* parent) : TestMOSyncGui::~TestMOSyncGui() { + delete m_spectrumVis; delete ui; } @@ -283,7 +284,6 @@ void TestMOSyncGui::on_interp_currentIndexChanged(int index) m_settings.m_log2Interp = index; ui->glSpectrum->setSampleRate(m_settings.m_sampleRate*(1<