mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 06:46:22 +02:00
Add "clipping" indicator to audio level meter
This commit is contained in:
parent
52aa20b4d5
commit
d2abf1a56d
1 changed files with 15 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue