| 673 | } |
| 674 | |
| 675 | void StripFinalOutputPanel::syncControlsFromEngine() |
| 676 | { |
| 677 | if (!m_audio) return; |
| 678 | auto* lim = m_audio->clientFinalLimiterTx(); |
| 679 | if (!lim) return; |
| 680 | if (m_enable) { |
| 681 | QSignalBlocker b(m_enable); |
| 682 | m_enable->setChecked(lim->isEnabled()); |
| 683 | } |
| 684 | if (m_trim) { |
| 685 | QSignalBlocker b(m_trim); |
| 686 | m_trim->setValue(lim->outputTrimDb()); |
| 687 | } |
| 688 | if (m_dcBtn) { |
| 689 | QSignalBlocker b(m_dcBtn); |
| 690 | m_dcBtn->setChecked(lim->dcBlockEnabled()); |
| 691 | } |
| 692 | if (m_toneBtn) { |
| 693 | if (auto* tone = m_audio->clientTxTestTone()) { |
| 694 | QSignalBlocker b(m_toneBtn); |
| 695 | m_toneBtn->setChecked(tone->isEnabled()); |
| 696 | } |
| 697 | } |
| 698 | if (m_quinBtn) { |
| 699 | if (auto* q = m_audio->clientQuindarTone()) { |
| 700 | QSignalBlocker b(m_quinBtn); |
| 701 | m_quinBtn->setChecked(q->isEnabled()); |
| 702 | } |
| 703 | } |
| 704 | // Seed the clip-count baseline so we don't latch OVR from |
| 705 | // historical clips on startup or after preset reload. |
| 706 | m_lastClipCount = lim->clipPreLimiterCount(); |
| 707 | m_ovrLatchUntilMs = 0; |
| 708 | } |
| 709 | |
| 710 | void StripFinalOutputPanel::applyEnable(bool on) |
| 711 | { |
nothing calls this directly
no test coverage detected