| 4742 | } |
| 4743 | |
| 4744 | void AudioEngine::saveClientTubeRxSettings() const |
| 4745 | { |
| 4746 | if (!m_clientTubeRx) return; |
| 4747 | auto& s = AppSettings::instance(); |
| 4748 | auto toBool = [](bool on) { return on ? QString("True") : QString("False"); }; |
| 4749 | s.setValue("ClientTubeRxEnabled", toBool(m_clientTubeRx->isEnabled())); |
| 4750 | s.setValue("ClientTubeRxModel", |
| 4751 | QString::number(static_cast<int>(m_clientTubeRx->model()))); |
| 4752 | s.setValue("ClientTubeRxDriveDb", |
| 4753 | QString::number(m_clientTubeRx->driveDb())); |
| 4754 | s.setValue("ClientTubeRxBias", |
| 4755 | QString::number(m_clientTubeRx->biasAmount())); |
| 4756 | s.setValue("ClientTubeRxTone", |
| 4757 | QString::number(m_clientTubeRx->tone())); |
| 4758 | s.setValue("ClientTubeRxOutputDb", |
| 4759 | QString::number(m_clientTubeRx->outputGainDb())); |
| 4760 | s.setValue("ClientTubeRxDryWet", |
| 4761 | QString::number(m_clientTubeRx->dryWet())); |
| 4762 | s.setValue("ClientTubeRxEnvelope", |
| 4763 | QString::number(m_clientTubeRx->envelopeAmount())); |
| 4764 | s.setValue("ClientTubeRxAttackMs", |
| 4765 | QString::number(m_clientTubeRx->attackMs())); |
| 4766 | s.setValue("ClientTubeRxReleaseMs", |
| 4767 | QString::number(m_clientTubeRx->releaseMs())); |
| 4768 | } |
| 4769 | |
| 4770 | void AudioEngine::loadClientPuduSettings() |
| 4771 | { |
no test coverage detected