<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Module restore restores volume and mute settings from wrong sink input"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93855#c18">Comment # 18</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Module restore restores volume and mute settings from wrong sink input"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93855">bug 93855</a>
              from <span class="vcard"><a class="email" href="mailto:leonard-rh-bugzilla@den.ottolander.nl" title="Leonard den Ottolander <leonard-rh-bugzilla@den.ottolander.nl>"> <span class="fn">Leonard den Ottolander</span></a>
</span></b>
        <pre>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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>