1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 08:28:36 -05:00

UDP source plugin: fixed AM demod

This commit is contained in:
f4exb 2017-08-18 12:30:12 +02:00
parent 66a588403c
commit dda67c0947

View File

@ -247,7 +247,7 @@ void UDPSrc::feed(const SampleVector::const_iterator& begin, const SampleVector:
} }
else if (m_sampleFormat == FormatAMMono) 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_udpBufferMono->write(demod);
m_outMovingAverage.feed((demod * demod) / (1<<30)); m_outMovingAverage.feed((demod * demod) / (1<<30));
} }