GNOME Bugzilla – Bug 748577
pulsesink: doesn't notify about volume changes in paused state or after connecting to pulseaudio
Last modified: 2018-11-03 15:00:08 UTC
Due to flat-volumes I'm exposing the pulsesink volume property in the UI now and noticed some problems: 1) When the pulsesink is created it returns 1.0 for volume and after going to paused it returns the actual volume assigned by PA. notify::volume never gets fired in between. 2) When in playing state, changing the volume in the gnome sound preferences or pavucontrol, pulsesink fires notify::volume. In the paused state it never fires notify::volume but the volume values changes. I've currently worked this around my polling pulsesink in case of state change messages on the bus and when the user interacts with the volume widget. It would be nice if pulsesink would notify in all cases where volume potentially changes.
+1 on fixing this.
(Side note, be aware that these changes will most likely be fired from a non-main thread)
*** This bug has been marked as a duplicate of bug 680779 ***
bug 680779 seems unrelated, this is about the volume property not the pulseaudio volume.
Ok ok, let's keep it separate then, but I do believe the part you set about flat-volume is a match. Will you propose a patch ?
For your interest, the point was that you should always be able to set 1.0 to start with, and not get any master volume change (as in GStreamer you should control the stream volume).
Thanks. The problem also occurs without flat-volumes but isn't visible as much as the master volume doesn't affect the stream volume and the user doesn't change the stream volume from outside (pavucontrol, gnome sound settings,..) that often. I'll look into providing a patch. (I never set the volume property to some constant, so bug 680779 doesn't affect me..)
-- 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/gstreamer/gst-plugins-good/issues/183.