aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/sound/Service.qml
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/modules/sound/Service.qml')
-rw-r--r--desktop/modules/sound/Service.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop/modules/sound/Service.qml b/desktop/modules/sound/Service.qml
index 22a4520..5f10c34 100644
--- a/desktop/modules/sound/Service.qml
+++ b/desktop/modules/sound/Service.qml
@@ -36,6 +36,14 @@ Scope {
Pipewire.nodes.values.filter(n => n.audio && !n.isStream && !n.isSink
&& !String(n.name).endsWith(".monitor"))
+ // Applications playing audio. Matched on the node type: `isSink` reads
+ // true for a playback stream (Firefox, measured), the reverse of what it
+ // means for a device, so it cannot tell playback from recording here.
+ readonly property var streams:
+ Pipewire.nodes.values.filter(n => n.type === PwNodeType.AudioOutStream
+ // always present, never audible
+ && n.name !== "speech-dispatcher-dummy")
+
// Which node changed last, and whether it was the input. The OSD draws
// this one; null means nothing to show.
property PwNode active: null