diff --git a/UI/volume-control.cpp b/UI/volume-control.cpp index 25ad20484..5d74e2c7a 100644 --- a/UI/volume-control.cpp +++ b/UI/volume-control.cpp @@ -1008,7 +1008,7 @@ VolumeMeter::calculateBallisticsForChannel(int channelNr, uint64_t ts, float decay = float(peakDecayRate * timeSinceLastRedraw); displayPeak[channelNr] = std::clamp(displayPeak[channelNr] - decay, - currentPeak[channelNr], 0.f); + std::min(currentPeak[channelNr], 0.f), 0.f); } if (currentPeak[channelNr] >= displayPeakHold[channelNr] ||