gnome-control-center's code has support for setting the "sink-input-by-media-role:event" volume, and mute state.
The problem is that the API makes it impossible to set only the volume, or only the mute state, making it impossible to be sure that the mute state or volume will always be in sync with (the changing) reality.
Adding a flag to pa_ext_stream_restore_info, as to whether to modify the saved mute state, or volume would be useful.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/440.