From d6f5de1ad7cd6daab1b85541c15f17c38d7f88dd Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 19 May 2018 05:10:17 +0200 Subject: [PATCH] Channel analyzer NG: created settings - correction --- plugins/channelrx/chanalyzerng/chanalyzerng.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/plugins/channelrx/chanalyzerng/chanalyzerng.cpp b/plugins/channelrx/chanalyzerng/chanalyzerng.cpp index f66c44e85..b45a436d2 100644 --- a/plugins/channelrx/chanalyzerng/chanalyzerng.cpp +++ b/plugins/channelrx/chanalyzerng/chanalyzerng.cpp @@ -372,16 +372,13 @@ void ChannelAnalyzerNG::applySettings(const ChannelAnalyzerNGSettings& settings, if ((settings.m_downSample != m_settings.m_downSample) || force) { + int sampleRate = settings.m_downSample ? settings.m_downSampleRate : m_inputSampleRate; + m_settingsMutex.lock(); m_useInterpolator = settings.m_downSample; - - if (settings.m_downSample) - { - setFilters(settings.m_downSampleRate, settings.m_bandwidth, settings.m_lowCutoff); - m_pll.setSampleRate(settings.m_downSampleRate / (1<