diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-08 21:10:30 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-08 21:10:30 +1000 |
| commit | d0fdbefbfb60994ad8d6cf3b7129dcdd556c1924 (patch) | |
| tree | 5319ea868c554d470ab3c74d7ba4a28442fbeaff /modules/dashboard | |
| parent | dev: export cmake compile commands (diff) | |
| download | caelestia-shell-d0fdbefbfb60994ad8d6cf3b7129dcdd556c1924.tar.gz caelestia-shell-d0fdbefbfb60994ad8d6cf3b7129dcdd556c1924.tar.bz2 caelestia-shell-d0fdbefbfb60994ad8d6cf3b7129dcdd556c1924.zip | |
plugin/ap: fix collector
Actually read from speakers not mic
Diffstat (limited to 'modules/dashboard')
| -rw-r--r-- | modules/dashboard/Media.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/dashboard/Media.qml b/modules/dashboard/Media.qml index 4084abb..2735964 100644 --- a/modules/dashboard/Media.qml +++ b/modules/dashboard/Media.qml @@ -55,8 +55,8 @@ Item { onTriggered: Players.active?.positionChanged() } - Ref { - service: Cava + ServiceRef { + service: Cava.provider } ServiceRef { @@ -91,10 +91,10 @@ Item { id: visualiserBar required property int modelData - readonly property int value: Math.max(1, Math.min(100, Cava.values[modelData])) + readonly property real value: Math.max(0, Math.min(1, Cava.values[modelData])) readonly property real angle: modelData * 2 * Math.PI / Config.services.visualiserBars - readonly property real magnitude: value / 100 * Config.dashboard.sizes.mediaVisualiserSize + readonly property real magnitude: value * Config.dashboard.sizes.mediaVisualiserSize readonly property real cos: Math.cos(angle) readonly property real sin: Math.sin(angle) |