Feature: Added Volume Sink
This commit is contained in:
@@ -40,6 +40,12 @@ Item {
|
|||||||
enabled: panel.visible
|
enabled: panel.visible
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PwNodePeakMonitor {
|
||||||
|
id: outputPeak
|
||||||
|
node: root.sink
|
||||||
|
enabled: panel.visible
|
||||||
|
}
|
||||||
|
|
||||||
// --- Device label/icon heuristics, ported from omarchy's audio panel
|
// --- Device label/icon heuristics, ported from omarchy's audio panel
|
||||||
// Model.js (github.com/basecamp/omarchy shell/plugins/panels/audio/Model.js),
|
// Model.js (github.com/basecamp/omarchy shell/plugins/panels/audio/Model.js),
|
||||||
// adapted to this project's Material Symbols icon set instead of Nerd Font.
|
// adapted to this project's Material Symbols icon set instead of Nerd Font.
|
||||||
@@ -375,6 +381,11 @@ Item {
|
|||||||
onMoved: (v) => { if (root.sink && root.sink.audio) root.sink.audio.volume = v }
|
onMoved: (v) => { if (root.sink && root.sink.audio) root.sink.audio.volume = v }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LevelMeter {
|
||||||
|
width: parent.width
|
||||||
|
level: outputPeak.peak
|
||||||
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
spacing: 2
|
spacing: 2
|
||||||
@@ -425,6 +436,7 @@ Item {
|
|||||||
level: inputPeak.peak
|
level: inputPeak.peak
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
spacing: 2
|
spacing: 2
|
||||||
|
|||||||
Reference in New Issue
Block a user