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

Method saveClientGateRxSettings

src/core/AudioEngine.cpp:4544–4568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4542}
4543
4544void AudioEngine::saveClientGateRxSettings() const
4545{
4546 if (!m_clientGateRx) return;
4547 auto& s = AppSettings::instance();
4548 auto toBool = [](bool on) { return on ? QString("True") : QString("False"); };
4549 s.setValue("ClientGateRxEnabled", toBool(m_clientGateRx->isEnabled()));
4550 s.setValue("ClientGateRxMode",
4551 QString::number(static_cast<int>(m_clientGateRx->mode())));
4552 s.setValue("ClientGateRxThresholdDb",
4553 QString::number(m_clientGateRx->thresholdDb()));
4554 s.setValue("ClientGateRxReturnDb",
4555 QString::number(m_clientGateRx->returnDb()));
4556 s.setValue("ClientGateRxRatio",
4557 QString::number(m_clientGateRx->ratio()));
4558 s.setValue("ClientGateRxAttackMs",
4559 QString::number(m_clientGateRx->attackMs()));
4560 s.setValue("ClientGateRxHoldMs",
4561 QString::number(m_clientGateRx->holdMs()));
4562 s.setValue("ClientGateRxReleaseMs",
4563 QString::number(m_clientGateRx->releaseMs()));
4564 s.setValue("ClientGateRxFloorDb",
4565 QString::number(m_clientGateRx->floorDb()));
4566 s.setValue("ClientGateRxLookaheadMs",
4567 QString::number(m_clientGateRx->lookaheadMs()));
4568}
4569
4570void AudioEngine::loadClientDeEssSettings()
4571{

Callers 6

applyPresetJsonMethod · 0.80
saveGateSettingsMethod · 0.80
saveGateSettingsMethod · 0.80
toggleStageBypassMethod · 0.80
toggleStageBypassMethod · 0.80
saveGateSettingsMethod · 0.80

Calls 11

returnDbMethod · 0.80
holdMsMethod · 0.80
floorDbMethod · 0.80
lookaheadMsMethod · 0.80
setValueMethod · 0.45
isEnabledMethod · 0.45
modeMethod · 0.45
thresholdDbMethod · 0.45
ratioMethod · 0.45
attackMsMethod · 0.45
releaseMsMethod · 0.45

Tested by

no test coverage detected