| 4417 | } |
| 4418 | |
| 4419 | void AudioEngine::loadClientCompRxSettings() |
| 4420 | { |
| 4421 | if (!m_clientCompRx) return; |
| 4422 | auto& s = AppSettings::instance(); |
| 4423 | m_clientCompRx->setEnabled( |
| 4424 | s.value("ClientCompRxEnabled", "False").toString() == "True"); |
| 4425 | m_clientCompRx->setThresholdDb( |
| 4426 | s.value("ClientCompRxThresholdDb", "-18.0").toFloat()); |
| 4427 | m_clientCompRx->setRatio( |
| 4428 | s.value("ClientCompRxRatio", "3.0").toFloat()); |
| 4429 | m_clientCompRx->setAttackMs( |
| 4430 | s.value("ClientCompRxAttackMs", "20.0").toFloat()); |
| 4431 | m_clientCompRx->setReleaseMs( |
| 4432 | s.value("ClientCompRxReleaseMs", "200.0").toFloat()); |
| 4433 | m_clientCompRx->setKneeDb( |
| 4434 | s.value("ClientCompRxKneeDb", "6.0").toFloat()); |
| 4435 | m_clientCompRx->setMakeupDb( |
| 4436 | s.value("ClientCompRxMakeupDb", "0.0").toFloat()); |
| 4437 | m_clientCompRx->setLimiterEnabled( |
| 4438 | s.value("ClientCompRxLimEnabled", "True").toString() == "True"); |
| 4439 | m_clientCompRx->setLimiterCeilingDb( |
| 4440 | s.value("ClientCompRxLimCeilingDb", "-1.0").toFloat()); |
| 4441 | } |
| 4442 | |
| 4443 | void AudioEngine::saveClientCompRxSettings() const |
| 4444 | { |
nothing calls this directly
no test coverage detected