cava: stop the capture stream from dragging the pipewire quantum down

ref #810
port 2.0
This commit is contained in:
bbedward committed 2026-10-26 19:51:30 -04:00
1 parent d60fa2c86f
commit a3c4d0ab1a
2 files changed
+7 -2

No files matched your search

@@ -29,7 +29,7 @@ Item {
}
Loader {
active: root.live
active: root.live && root.available
sourceComponent: Component {
Ref {
service: CavaService
@@ -39,7 +39,7 @@ Item {
Connections {
target: CavaService
enabled: root.live
enabled: root.live && root.available
function onValuesChanged() {
const v = CavaService.values;
if (v.length < 6)
+5
View File
@@ -41,6 +41,11 @@ Singleton {
id: cavaProcess
running: root.cavaAvailable && root.refCount > 0
// cava asks for 512 frames, which drags the graph quantum down on spawn and back up on exit, audible on some hardware (#810)
environment: ({
"PIPEWIRE_LATENCY": "2400/48000",
"PULSE_LATENCY_MSEC": "50"
})
command: ["sh", "-c", `cat <<'CAVACONF' > ${root._confPath}
[general]
framerate=25