From 2e18f50eaf9afe927868e02426c3f8ede51e7a2c Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 26 Aug 2017 05:57:49 +0200 Subject: [PATCH] AM demod: fixed copy audio to UDP switching --- plugins/channelrx/demodam/amdemod.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/channelrx/demodam/amdemod.h b/plugins/channelrx/demodam/amdemod.h index 0d3025614..ca39d1635 100644 --- a/plugins/channelrx/demodam/amdemod.h +++ b/plugins/channelrx/demodam/amdemod.h @@ -257,7 +257,7 @@ private: m_audioBuffer[m_audioBufferFill].l = sample; m_audioBuffer[m_audioBufferFill].r = sample; - m_udpBufferAudio->write(m_audioBuffer[m_audioBufferFill]); + if (m_running.m_copyAudioToUDP) m_udpBufferAudio->write(m_audioBuffer[m_audioBufferFill]); ++m_audioBufferFill; if (m_audioBufferFill >= m_audioBuffer.size())