service/pipewire: set device node volumes with device object

Fixes discrepancies between pulse and qs volumes, and volumes not
persisting across reboot or vt switches.
This commit is contained in:
outfoxxed 2024-08-27 01:28:28 -07:00
parent b40d4147e0
commit c60871a7fb
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
9 changed files with 380 additions and 74 deletions

View file

@ -18,6 +18,8 @@
namespace qs::service::pipewire {
class PwDevice;
///! Audio channel of a pipewire node.
/// See @@PwNodeAudio.channels.
class PwAudioChannel: public QObject {
@ -161,6 +163,9 @@ public:
PwNodeBoundData* boundData = nullptr;
PwDevice* device = nullptr;
qint32 routeDevice = -1;
signals:
void propertiesChanged();