diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-09 16:31:02 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-09 16:31:02 +1000 |
| commit | 6ae1a8e811f72bda251f8718fb148fcb6853bcc4 (patch) | |
| tree | 4b4018628c9cc32a7f43a4a0d17b091eb852db2c /services/Audio.qml | |
| parent | nix: fix build error with libcava (#585) (diff) | |
| download | caelestia-shell-6ae1a8e811f72bda251f8718fb148fcb6853bcc4.tar.gz caelestia-shell-6ae1a8e811f72bda251f8718fb148fcb6853bcc4.tar.bz2 caelestia-shell-6ae1a8e811f72bda251f8718fb148fcb6853bcc4.zip | |
plugin/ac: not singleton
Also add nodeId prop
BeatTracker not singleton
Move BeatTracker and Cava to Audio service
Diffstat (limited to 'services/Audio.qml')
| -rw-r--r-- | services/Audio.qml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/services/Audio.qml b/services/Audio.qml index a0475d0..e638af5 100644 --- a/services/Audio.qml +++ b/services/Audio.qml @@ -1,6 +1,7 @@ pragma Singleton import qs.config +import Caelestia import Quickshell import Quickshell.Services.Pipewire @@ -32,6 +33,9 @@ Singleton { readonly property bool sourceMuted: !!source?.audio?.muted readonly property real sourceVolume: source?.audio?.volume ?? 0 + readonly property alias cava: cava + readonly property alias beatTracker: beatTracker + function setVolume(newVolume: real): void { if (sink?.ready && sink?.audio) { sink.audio.muted = false; @@ -73,4 +77,21 @@ Singleton { PwObjectTracker { objects: [...root.sinks, ...root.sources] } + + AudioCollector { + id: collector + } + + CavaProvider { + id: cava + + collector: collector + bars: Config.services.visualiserBars + } + + BeatTracker { + id: beatTracker + + collector: collector + } } |