mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-04 19:04:56 +11:00
services/pipewire: update volume props from device for device nodes
Yet another device node edge case. In addition to only writing via a pw_device when present, now we only read from one as well. This fixes missing state changes not conveyed by the pw_node. Fixes #35
This commit is contained in:
parent
579d589290
commit
95d0af8113
5 changed files with 61 additions and 19 deletions
|
|
@ -203,9 +203,10 @@ signals:
|
|||
|
||||
private slots:
|
||||
void onDeviceReady();
|
||||
void onDeviceVolumesChanged(qint32 routeDevice, const PwVolumeProps& props);
|
||||
|
||||
private:
|
||||
void updateVolumeProps(const spa_pod* param);
|
||||
void updateVolumeProps(const PwVolumeProps& volumeProps);
|
||||
|
||||
bool mMuted = false;
|
||||
QVector<PwAudioChannel::Enum> mChannels;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue