With some #wireplumber changes landing we're a big step closer to enabling separate volume controls for things like media, alerts, alarms, etc. in #Phosh. Here's a short overview on the current state: https://phosh.mobi/posts/role-based-routing/

#LinuxMobile

Audio Roles, Volumes and Routes

What if you want to have your phone’s alarm clock volume different from your music playback volume and have the later go to speakers while alarms should continue to go to the phone’s speaker? While this could be handled manually via per application volume and sink setups, this doesn’t scale well on phones that also have emergency alerts, incoming calls, voice assistants, etc. It also doesn’t specify how to handle simultaneous playback - for instance, if an incoming call rings while music is playing.

Phosh

@phosh #wireplumber 0.5.13 containing the necessary changes was released a couple of days ago 🙏 and is already in #Debian 🙏 so I built #feedbackd with `DEB_BUILD_PROFILES=pkg.feedbackd.media-roles`, installed the result and from a quick test is seems to be working nicely.

The next #pipewire release will fix a bug regarding volume restore with media roles and hopfully we can then looking into turning this on by default in #phosh afterwards.

@agx @phosh Can you link me to the volume restore bugfix please? I can't find it in the wireplumber repo

@katzenmann @phosh It's part of 1.5.84 , the commit is linked from https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4949#note_3205830

(but note that wireplumber 1.5.84 needs gvc fixes (https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/merge_requests/31) as otherwise e.g. phosh crashes on device selection.

loopback node volumes not restored until they start running (#4949) · Issues · PipeWire / pipewire · GitLab

While looking into

GitLab