MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / saveClientCompRxSettings

Method saveClientCompRxSettings

src/core/AudioEngine.cpp:4443–4458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4441}
4442
4443void AudioEngine::saveClientCompRxSettings() const
4444{
4445 if (!m_clientCompRx) return;
4446 auto& s = AppSettings::instance();
4447 auto toBool = [](bool on) { return on ? QString("True") : QString("False"); };
4448 s.setValue("ClientCompRxEnabled", toBool(m_clientCompRx->isEnabled()));
4449 s.setValue("ClientCompRxThresholdDb", QString::number(m_clientCompRx->thresholdDb()));
4450 s.setValue("ClientCompRxRatio", QString::number(m_clientCompRx->ratio()));
4451 s.setValue("ClientCompRxAttackMs", QString::number(m_clientCompRx->attackMs()));
4452 s.setValue("ClientCompRxReleaseMs", QString::number(m_clientCompRx->releaseMs()));
4453 s.setValue("ClientCompRxKneeDb", QString::number(m_clientCompRx->kneeDb()));
4454 s.setValue("ClientCompRxMakeupDb", QString::number(m_clientCompRx->makeupDb()));
4455 s.setValue("ClientCompRxLimEnabled", toBool(m_clientCompRx->limiterEnabled()));
4456 s.setValue("ClientCompRxLimCeilingDb",
4457 QString::number(m_clientCompRx->limiterCeilingDb()));
4458}
4459
4460void AudioEngine::loadClientGateSettings()
4461{

Callers 6

applyPresetJsonMethod · 0.80
saveCompSettingsMethod · 0.80
saveCompSettingsMethod · 0.80
saveCompSettingsMethod · 0.80
toggleStageBypassMethod · 0.80
toggleStageBypassMethod · 0.80

Calls 10

kneeDbMethod · 0.80
makeupDbMethod · 0.80
limiterEnabledMethod · 0.80
limiterCeilingDbMethod · 0.80
setValueMethod · 0.45
isEnabledMethod · 0.45
thresholdDbMethod · 0.45
ratioMethod · 0.45
attackMsMethod · 0.45
releaseMsMethod · 0.45

Tested by

no test coverage detected