| 4542 | } |
| 4543 | |
| 4544 | void 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 | |
| 4570 | void AudioEngine::loadClientDeEssSettings() |
| 4571 | { |
no test coverage detected