From dda67c0947b6caa1af32eff88180c50f141b159c Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 18 Aug 2017 12:30:12 +0200 Subject: [PATCH] UDP source plugin: fixed AM demod --- plugins/channelrx/udpsrc/udpsrc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/channelrx/udpsrc/udpsrc.cpp b/plugins/channelrx/udpsrc/udpsrc.cpp index cbbf94937..6eb66dd19 100644 --- a/plugins/channelrx/udpsrc/udpsrc.cpp +++ b/plugins/channelrx/udpsrc/udpsrc.cpp @@ -247,7 +247,7 @@ void UDPSrc::feed(const SampleVector::const_iterator& begin, const SampleVector: } else if (m_sampleFormat == FormatAMMono) { - FixReal demod = m_squelchOpen ? (FixReal) (32768.0f * sqrt(inMagSq) * m_gain) : 0; + FixReal demod = m_squelchOpen ? (FixReal) (sqrt(inMagSq) * m_gain) : 0; m_udpBufferMono->write(demod); m_outMovingAverage.feed((demod * demod) / (1<<30)); }