1
0
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:
f4exb
2016-12-16 00:02:37 +01:00
parent 5571e01a65
commit 014ada12ba
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -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;