| 364 | } |
| 365 | |
| 366 | void 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 | |
| 387 | void StripDeEssPanel::refreshSlopeButton() |
| 388 | { |
nothing calls this directly
no test coverage detected