| 56 | } |
| 57 | |
| 58 | void ClientGateLevelView::tick() |
| 59 | { |
| 60 | if (!m_gate) return; |
| 61 | Sample s; |
| 62 | s.inputDb = std::clamp(m_gate->inputPeakDb(), kBottomDb, kTopDb); |
| 63 | s.grDb = std::clamp(m_gate->gainReductionDb(), -80.0f, 0.0f); |
| 64 | m_history[m_writeIdx] = s; |
| 65 | m_writeIdx = (m_writeIdx + 1) % kHistoryCount; |
| 66 | update(); |
| 67 | } |
| 68 | |
| 69 | float ClientGateLevelView::dbToY(float db) const |
| 70 | { |
nothing calls this directly
no test coverage detected