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

Method syncControlsFromEngine

src/gui/StripFinalOutputPanel.cpp:675–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

673}
674
675void 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
710void StripFinalOutputPanel::applyEnable(bool on)
711{

Callers

nothing calls this directly

Calls 8

clientFinalLimiterTxMethod · 0.80
outputTrimDbMethod · 0.80
dcBlockEnabledMethod · 0.80
clientTxTestToneMethod · 0.80
clientQuindarToneMethod · 0.80
clipPreLimiterCountMethod · 0.80
isEnabledMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected