From da8c14791bbfae108b0d944210efd9e40c9862ef Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 16 Oct 2017 21:56:56 +0200 Subject: [PATCH] UDP Sink: use settings in sink (1) --- plugins/channeltx/udpsink/udpsink.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/channeltx/udpsink/udpsink.cpp b/plugins/channeltx/udpsink/udpsink.cpp index eeec71ced..eef2245c5 100644 --- a/plugins/channeltx/udpsink/udpsink.cpp +++ b/plugins/channeltx/udpsink/udpsink.cpp @@ -51,7 +51,7 @@ UDPSink::UDPSink(MessageQueue* uiMessageQueue, UDPSinkGUI* udpSinkGUI, BasebandS { setObjectName("UDPSink"); m_udpHandler.setFeedbackMessageQueue(&m_inputMessageQueue); - m_SSBFilter = new fftfilt(m_config.m_lowCutoff / m_config.m_inputSampleRate, m_config.m_rfBandwidth / m_config.m_inputSampleRate, m_ssbFftLen); + m_SSBFilter = new fftfilt(m_running.m_lowCutoff / m_running.m_inputSampleRate, m_running.m_rfBandwidth / m_running.m_inputSampleRate, m_ssbFftLen); m_SSBFilterBuffer = new Complex[m_ssbFftLen>>1]; // filter returns data exactly half of its size apply(true); } @@ -393,8 +393,8 @@ bool UDPSink::handleMessage(const Message& cmd) m_settingsMutex.lock(); m_interpolatorDistanceRemain = 0; m_interpolatorConsumed = false; - m_interpolatorDistance = (Real) m_actualInputSampleRate / (Real) m_config.m_outputSampleRate; - //m_interpolator.create(48, m_actualInputSampleRate, m_config.m_rfBandwidth / 2.2, 3.0); // causes clicking: leaving at standard frequency + m_interpolatorDistance = (Real) m_actualInputSampleRate / (Real) m_running.m_outputSampleRate; + //m_interpolator.create(48, m_actualInputSampleRate, m_running.m_rfBandwidth / 2.2, 3.0); // causes clicking: leaving at standard frequency m_settingsMutex.unlock(); }