提交 17d2a17f 编写于 作者: J jp9000

UI: Put clip detection back in to volume meter

Before the new volume meters were implemented, the meter would flash red
if the audio was clipping.  This functionality was removed when the
meters were changed, whether intentionally or unintentionally, and this
patch puts that functionality back in.  If clipping occurs, the meters
will be fully colored with the foregroundErrorColor value while the
clipping is occurring.
上级 da7b8c79
......@@ -733,18 +733,11 @@ void VolumeMeter::paintMeter(QPainter &painter, int x, int y,
backgroundErrorColor);
} else {
qreal end = errorLength + warningLength + nominalLength;
painter.fillRect(
minimumPosition, y,
nominalLength, height,
foregroundNominalColor);
painter.fillRect(
warningPosition, y,
warningLength, height,
foregroundWarningColor);
painter.fillRect(
errorPosition, y,
errorLength, height,
foregroundErrorColor);
end, height,
QBrush(foregroundErrorColor));
}
if (peakHoldPosition - 3 < minimumPosition) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册