[pulseaudio-tickets] [Bug 66677] Volume of regular stream turn to Max while volume sharing

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jul 9 02:25:25 PDT 2013


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

--- Comment #2 from IvanXie <cunshangzhishu at gmail.com> ---
(In reply to comment #1)
> (In reply to comment #0)
> > "volume sharing" feature patch
> > http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/pulsecore/sink-
> > 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?
> 

Yes. We set "flat-volumes = no" in /etc/pulse/daemon.conf.


> > 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?

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

-- 
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/20130709/cc37d4c8/attachment.html>


More information about the pulseaudio-bugs mailing list