mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-23 02:24:16 -04:00
CW smoother: set default ramp time to 4ms and set the modulators ramp time at the same value
This commit is contained in:
@@ -71,7 +71,7 @@ AMMod::AMMod() :
|
||||
m_cwKeyer.setSampleRate(m_config.m_audioSampleRate);
|
||||
m_cwKeyer.setWPM(13);
|
||||
m_cwKeyer.setMode(CWKeyer::CWNone);
|
||||
m_cwSmoother.setNbFadeSamples(96); // 2 ms @ 48 kHz
|
||||
m_cwSmoother.setNbFadeSamples(192); // 4 ms @ 48 kHz
|
||||
}
|
||||
|
||||
AMMod::~AMMod()
|
||||
@@ -359,7 +359,7 @@ void AMMod::apply()
|
||||
if (m_config.m_audioSampleRate != m_running.m_audioSampleRate)
|
||||
{
|
||||
m_cwKeyer.setSampleRate(m_config.m_audioSampleRate);
|
||||
m_cwSmoother.setNbFadeSamples(m_config.m_audioSampleRate / 500); // 2 ms
|
||||
m_cwSmoother.setNbFadeSamples(m_config.m_audioSampleRate / 250); // 4 ms
|
||||
}
|
||||
|
||||
m_running.m_outputSampleRate = m_config.m_outputSampleRate;
|
||||
|
||||
Reference in New Issue
Block a user