From d2abf1a56d5e9e67cfa9a064d415f8564b8381d4 Mon Sep 17 00:00:00 2001 From: Ken Cooke Date: Thu, 7 Feb 2019 15:52:29 -0800 Subject: [PATCH] Add "clipping" indicator to audio level meter --- interface/resources/qml/hifi/audio/MicBar.qml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/interface/resources/qml/hifi/audio/MicBar.qml b/interface/resources/qml/hifi/audio/MicBar.qml index 3dbf55818e..615235470f 100644 --- a/interface/resources/qml/hifi/audio/MicBar.qml +++ b/interface/resources/qml/hifi/audio/MicBar.qml @@ -234,7 +234,7 @@ Rectangle { Rectangle { id: gatedIndicator; - visible: gated + visible: gated && !AudioScriptingInterface.clipping radius: 4; width: 2 * radius; @@ -245,5 +245,19 @@ Rectangle { verticalCenter: parent.verticalCenter; } } + + Rectangle { + id: clippingIndicator; + visible: AudioScriptingInterface.clipping + + radius: 4; + width: 2 * radius; + height: 2 * radius; + color: colors.red; + anchors { + left: parent.right; + verticalCenter: parent.verticalCenter; + } + } } }