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

Method syncControlsFromEngine

src/gui/StripDeEssPanel.cpp:366–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366void StripDeEssPanel::syncControlsFromEngine()
367{
368 if (!m_audio || !deEss()) return;
369 ClientDeEss* d = deEss();
370 m_restoring = true;
371
372 { QSignalBlocker b(m_freq); m_freq->setValue(d->frequencyHz()); }
373 { QSignalBlocker b(m_q); m_q->setValue(d->q()); }
374 { QSignalBlocker b(m_threshold); m_threshold->setValue(d->thresholdDb()); }
375 { QSignalBlocker b(m_amount); m_amount->setValue(d->amountDb()); }
376 { QSignalBlocker b(m_attack); m_attack->setValue(d->attackMs()); }
377 { QSignalBlocker b(m_release); m_release->setValue(d->releaseMs()); }
378
379 refreshSlopeButton();
380
381 if (auto* bar = static_cast<DeEssGrBar*>(m_grBar))
382 bar->setGrDb(d->gainReductionDb());
383
384 m_restoring = false;
385}
386
387void StripDeEssPanel::refreshSlopeButton()
388{

Callers

nothing calls this directly

Calls 9

qMethod · 0.80
amountDbMethod · 0.80
setValueMethod · 0.45
frequencyHzMethod · 0.45
thresholdDbMethod · 0.45
attackMsMethod · 0.45
releaseMsMethod · 0.45
setGrDbMethod · 0.45
gainReductionDbMethod · 0.45

Tested by

no test coverage detected