mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 09:48:45 -05:00
AM demod: enhance squelch ramp up and down (start and end at 0)
This commit is contained in:
parent
a39b102f89
commit
07c476f1d4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user