Skip to content

Pipewire errors upon updating properties #54

@msix29

Description

@msix29
pragma Singleton

import Quickshell
import Quickshell.Services.Pipewire

Singleton {
    id: root

    readonly property PwNode sink: Pipewire.defaultAudioSink
    readonly property PwNode source: Pipewire.defaultAudioSource

    readonly property bool muted: sink?.audio.muted
    readonly property real volume: sink?.audio.volume

    function setVolume(volume: real): void {
        console.log(sink?.id);
        if (sink?.ready && sink?.audio) {
            sink.audio.muted = false;
            sink.audio.volume = volume;
        }
    }

    PwObjectTracker {
        objects: [sink, source]
    }
}

Given this, whenever I update the volume, I get:

 DEBUG qml: 41
 ERROR quickshell.service.pipewire.device: Tried to change device route props for PwDevice(0x7fd1427cd700, id=45/bound) with untracked route device 3

ID 41 is indeed by default sink... But why is it erroring with ID 45? Why is it even using it? The ID doesn't point to anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions