mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-12 19:36:10 -05:00
SSB demod: squelch: change ramp up/down constant to half of the averaging time
This commit is contained in:
parent
56c0aaedcd
commit
b9a19577c7
@ -405,7 +405,7 @@ void SSBDemod::applyAudioSampleRate(int sampleRate)
|
||||
|
||||
if (m_agcNbSamples != agcNbSamples)
|
||||
{
|
||||
m_agc.resize(agcNbSamples, std::min(sampleRate/20, agcNbSamples/2), agcTarget);
|
||||
m_agc.resize(agcNbSamples, agcNbSamples/2, agcTarget);
|
||||
m_agc.setStepDownDelay(agcNbSamples);
|
||||
m_agcNbSamples = agcNbSamples;
|
||||
}
|
||||
@ -503,7 +503,7 @@ void SSBDemod::applySettings(const SSBDemodSettings& settings, bool force)
|
||||
if (m_agcNbSamples != agcNbSamples)
|
||||
{
|
||||
m_settingsMutex.lock();
|
||||
m_agc.resize(agcNbSamples, std::min((int)m_audioSampleRate/20, agcNbSamples/2), agcTarget);
|
||||
m_agc.resize(agcNbSamples, agcNbSamples/2, agcTarget);
|
||||
m_agc.setStepDownDelay(agcNbSamples);
|
||||
m_agcNbSamples = agcNbSamples;
|
||||
m_settingsMutex.unlock();
|
||||
|
Loading…
Reference in New Issue
Block a user