[pulseaudio-tickets] [Bug 93855] Module restore restores volume and mute settings from wrong sink input

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jan 26 13:47:44 PST 2016


https://bugs.freedesktop.org/show_bug.cgi?id=93855

--- Comment #18 from Leonard den Ottolander <leonard-rh-bugzilla at den.ottolander.nl> ---
I understand that the group mapping is a useful thing for when an (audio)
application is started and its stream is linked to a sink input for the first
time. In that case you might want to restore a (group) setting that you used
before.

The problem is that streams that automatically get remapped to another sink
input - this happens "spontaneously" from the user perspective, probably as a
result of a "stuttering" steam - also have these group settings applied. So the
remapped stream now suddenly has different mute and volume settings, with a
startling result.

So what the software should do is distinguish between these two situations:
When a stream is first linked to a sink input (when the stream is
created/started) it is fine to apply group settings, but when a stream is
merely remapped to the next sink input no changes to volume and mute settings
should be made.

I don't claim to have a complete solution or even a partial one, only the
suggestion: Make the software distinguish between initial mapping and remapping
of input sinks so the restoration module can make a choice whether to apply the
group settings or not.

I've only been studying the code since a few days and will certainly not claim
to understand all the ins and outs or know how to implement the suggestion I
make. It's just that I am looking for a solution to a situation where I
suddenly hear (a possibly quite loud) stream coming from my speakers without
having touched the volume settings.

I guess for now I have to live with providing a unique module-stream-restore.id
via PULSE_PROPS to every stream I start to remedy this situation.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20160126/f93bf3b5/attachment.html>


More information about the pulseaudio-bugs mailing list