Volume should be documented properly.
I want to make scripts for pipewire and execute scripts with keyboard shortcuts. I want to control mute and volume with keyboard. Thus, I need to know how to get and set volume. I prefer decibel volume levels exposed by ALSA, but pipewire doesn't let me get and set volumes in decibel.
wpctl get-volume ID
reports a different volume from channelVolumes
or softVolumes
found in pw-dump ID
. volume
property in pw-dump
is always 1.
channelVolumes and softVolumes are set to the same value after I execute wpctl set-volume ID volume
.
I don't understand why channelVolumes and softVolumes are the same value because there is no detailed explanation of channelVolumes and softVolumes.
I want to know the differences between wireplumber volume, volume, channelVolumes, and softVolumes. I want to know whether it's possible to translate pipewire/wireplumber volume levels to decibel volume levels.