mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-02-23 03:33:57 +11:00
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:
parent
dacfa9de82
commit
afbc5ffd4e
5 changed files with 35 additions and 14 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue