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

Method syncControlsFromEngine

src/gui/ClientCompEditor.cpp:324–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324void ClientCompEditor::syncControlsFromEngine()
325{
326 if (!m_audio) return;
327 ClientComp* c = comp();
328 if (!c) return;
329 QSignalBlocker br(m_ratio);
330 QSignalBlocker ba(m_attack);
331 QSignalBlocker brl(m_release);
332 QSignalBlocker bk(m_knee);
333 QSignalBlocker bm(m_makeup);
334 QSignalBlocker bce(m_ceiling);
335 QSignalBlocker ble(m_limiterEnable);
336
337 m_ratio->setValue(c->ratio());
338 m_attack->setValue(c->attackMs());
339 m_release->setValue(c->releaseMs());
340 m_knee->setValue(c->kneeDb());
341 m_makeup->setValue(c->makeupDb());
342 m_ceiling->setValue(c->limiterCeilingDb());
343 m_limiterEnable->setChecked(c->limiterEnabled());
344 if (m_threshFader) m_threshFader->setThresholdDb(c->thresholdDb());
345 if (m_canvas) m_canvas->update();
346}
347
348void ClientCompEditor::tickMeters()
349{

Callers

nothing calls this directly

Calls 11

kneeDbMethod · 0.80
makeupDbMethod · 0.80
limiterCeilingDbMethod · 0.80
limiterEnabledMethod · 0.80
updateMethod · 0.80
setValueMethod · 0.45
ratioMethod · 0.45
attackMsMethod · 0.45
releaseMsMethod · 0.45
setThresholdDbMethod · 0.45
thresholdDbMethod · 0.45

Tested by

no test coverage detected