smasher164 / pw-volume

Basic interface to PipeWire volume controls
MIT License
77 stars 10 forks source link

set sink volume instead of stream volume #15

Closed smasher164 closed 2 years ago

smasher164 commented 2 years ago

The correct way is https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Migrate-PulseAudio#sinksource-port-volumemuteport-latency.

After getting the node id, look up its device id and card profile device. Use the device id to look up its active routes. Set the volume property on the active route.

Fixes #11