From 07c476f1d42e1a5aa7366433d96ae703e2a4c141 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 13 May 2017 09:42:01 +0200 Subject: [PATCH] AM demod: enhance squelch ramp up and down (start and end at 0) --- 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 3610feda8..3f7830a83 100644 --- a/plugins/channelrx/demodam/amdemod.h +++ b/plugins/channelrx/demodam/amdemod.h @@ -196,7 +196,7 @@ private: demod /= 301.0f; } - Real attack = m_squelchCount / (0.1f * m_running.m_audioSampleRate); + Real attack = (m_squelchCount - 0.05f * m_running.m_audioSampleRate) / (0.05f * m_running.m_audioSampleRate); sample = (0.5 - demod) * attack * 2048 * m_running.m_volume; m_squelchOpen = true;