Add "clipping" indicator to audio level meter

This commit is contained in:
Ken Cooke 2019-02-07 15:52:29 -08:00
parent 52aa20b4d5
commit d2abf1a56d

View file

@ -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;
}
}
}
}