From 6473c84e6889cfda6fcde6247673d550295cea3d Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 18 Aug 2017 22:15:04 +0200 Subject: [PATCH] UDPSink plugin: activate VU meter for NFM modulation --- plugins/channelrx/udpsrc/udpsrcgui.ui | 4 ++-- plugins/channeltx/udpsink/udpsink.cpp | 1 + plugins/channeltx/udpsink/udpsinkgui.ui | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/channelrx/udpsrc/udpsrcgui.ui b/plugins/channelrx/udpsrc/udpsrcgui.ui index dc678e3cc..fe1e46618 100644 --- a/plugins/channelrx/udpsrc/udpsrcgui.ui +++ b/plugins/channelrx/udpsrc/udpsrcgui.ui @@ -6,13 +6,13 @@ 0 0 - 351 + 342 355 - 316 + 342 0 diff --git a/plugins/channeltx/udpsink/udpsink.cpp b/plugins/channeltx/udpsink/udpsink.cpp index 0351869d8..c3072e5d1 100644 --- a/plugins/channeltx/udpsink/udpsink.cpp +++ b/plugins/channeltx/udpsink/udpsink.cpp @@ -164,6 +164,7 @@ void UDPSink::modulateSample() m_modPhasor += (m_running.m_fmDeviation / m_running.m_inputSampleRate) * (t / 32768.0) * M_PI * 2.0f; m_modSample.real(cos(m_modPhasor) * 10362.2f * m_running.m_gain); m_modSample.imag(sin(m_modPhasor) * 10362.2f * m_running.m_gain); + calculateLevel(m_modSample); } else { diff --git a/plugins/channeltx/udpsink/udpsinkgui.ui b/plugins/channeltx/udpsink/udpsinkgui.ui index 1be8afcb9..abe417cf3 100644 --- a/plugins/channeltx/udpsink/udpsinkgui.ui +++ b/plugins/channeltx/udpsink/udpsinkgui.ui @@ -639,6 +639,9 @@ 16777215 + + Reset UDP buffer index + R