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

pull/27/head
f4exb 2017-05-13 09:42:01 +02:00
rodzic a39b102f89
commit 07c476f1d4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;