<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Volume of regular stream turn to Max while volume sharing"
href="https://bugs.freedesktop.org/show_bug.cgi?id=66677#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Volume of regular stream turn to Max while volume sharing"
href="https://bugs.freedesktop.org/show_bug.cgi?id=66677">bug 66677</a>
from <span class="vcard"><a class="email" href="mailto:cunshangzhishu@gmail.com" title="IvanXie <cunshangzhishu@gmail.com>"> <span class="fn">IvanXie</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=66677#c1">comment #1</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=66677#c0">comment #0</a>)
> > "volume sharing" feature patch
> > <a href="http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/pulsecore/sink">http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/pulsecore/sink</a>-
> > input.c?id=c9c88fb8dcbd35774e7aaae09e057e1b8bcdc3d4
> >
> > When a sink-input has been moved to a new proper sink, for the regular
> > stream case(flat disabled), we have to update sink-inputs' volume as
> > "i->reference_ratio".
>
> Are you saying that you have flat volumes disabled? Have you set
> "flat-volumes = no" in /etc/pulse/daemon.conf?
> </span >
Yes. We set "flat-volumes = no" in /etc/pulse/daemon.conf.
<span class="quote">> > In my case, I just create a new sink-input without passing volume parameter.
> > So the reference_ratio is Max. Right?
> > And after the sink-input created finished, I changed its volume by
> > pa_sink_input_set_volume.
> > The client scenario is like below:
> > 1.pa_simple_new
> > 2.pa_simple_set_volume.
>
> There's no such thing as pa_simple_set_volume. Could you describe the steps
> to reproduce the bug in more detail?</span >
Anyway. pa_simple_set_volume is a new function we added in PA simple.c.
Its just call pa_context_set_sink_input_volume to set volume value of
sink-input belongs to this new simple.
The reproduce steps is:
1.Create a new sink-input. (pa_simple_new)
2.Set the volume value of this sink-input. (pa_context_set_sink_input_volume)
3.Move this sink-input to other sink. (pa_sink_input_move_to)
Conditions:
1.No PA_SINK_SHARE_VOLUME_WITH_MASTER flags for sinks
2.flat-volumes = no</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>