services/pipewire: use node volume control when device missing

Some outputs which present a pipewire device object do not present
routes, instead expecting volume to be set on the associated pipewire node.
This commit is contained in:
Andrei 2026-02-15 23:23:34 +07:00 committed by outfoxxed
parent dacfa9de82
commit afbc5ffd4e
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
5 changed files with 35 additions and 14 deletions

View file

@ -141,6 +141,10 @@ bool PwDevice::tryLoadVolumeProps(qint32 routeDevice, PwVolumeProps& volumeProps
return true;
}
bool PwDevice::hasRouteDevice(qint32 routeDevice) const {
return this->routeDeviceIndexes.contains(routeDevice);
}
void PwDevice::polled() {
// It is far more likely that the list content has not come in yet than it having no entries,
// and there isn't a way to check in the case that there *aren't* actually any entries.