PulseAudio: play as "system sound"
paplay is used as soundplayer, event volume is hard to regulate. The master volume can be used, that's often not desired; the gajim audio source shows up on the
pavuctrl volume control, but too briefly (only during the sound) to actually change the volume.
paplay takes a
--property option to set metadata on the sound to be played.
--property=media.role=event declares the sound as an event sound (which it is). As a result, it is treated as a system sound, and is thus affected by the permanently visible "System Sounds" slider in
pavuctrl. Users who wish not to be disturbed by any kind of sound (eg. while watching a film) can thus mute gajim together with all other events.
I suggest that
--property=media.role=event be appended to the
paplay soundplayer when it is discovered.
There are more properties that could be utilized (eg. window metadata to have the stereo sound come from the gajim window), but that'd be excessive for this issue.
See http://0pointer.de/lennart/projects/pulseaudio/doxygen/proplist_8h.html for more details on properties.
OS version: Debian sid