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 untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
9 changed files with 380 additions and 74 deletions

View file

@ -21,6 +21,7 @@ class PwRegistry;
class PwMetadata;
class PwNode;
class PwLink;
class PwDevice;
class PwLinkGroup;
class PwBindableObject: public QObject {
@ -120,9 +121,12 @@ public:
//QHash<quint32, PwClient*> clients;
QHash<quint32, PwMetadata*> metadata;
QHash<quint32, PwNode*> nodes;
QHash<quint32, PwDevice*> devices;
QHash<quint32, PwLink*> links;
QVector<PwLinkGroup*> linkGroups;
PwCore* core = nullptr;
signals:
void nodeAdded(PwNode* node);
void linkAdded(PwLink* link);