1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-15 21:01:45 -05:00

AM demod: enhance squelch ramp up and down (start and end at 0)

This commit is contained in:
f4exb 2017-05-13 09:42:01 +02:00
parent a39b102f89
commit 07c476f1d4

View File

@ -196,7 +196,7 @@ private:
demod /= 301.0f; 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; sample = (0.5 - demod) * attack * 2048 * m_running.m_volume;
m_squelchOpen = true; m_squelchOpen = true;