<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><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">66677</a>
</td>
</tr>
<tr>
<th>CC</th>
<td>lennart@poettering.net
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Volume of regular stream turn to Max while volume sharing
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>cunshangzhishu@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>core
</td>
</tr>
<tr>
<th>Product</th>
<td>PulseAudio
</td>
</tr></table>
<p>
<div>
<pre>"volume sharing" feature patch
<a href="http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/pulsecore/sink-input.c?id=c9c88fb8dcbd35774e7aaae09e057e1b8bcdc3d4">http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/pulsecore/sink-input.c?id=c9c88fb8dcbd35774e7aaae09e057e1b8bcdc3d4</a>
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".
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.
So, when I move this sink-input to a proper sink I wanted, the volume of this
sink-input always turn to Max. Cause the "i->reference_ratio" is Max.
Anyway, I don't understand why we have to update the sink-input volume as
"i->reference_ratio" in the regular stream case.
If you have any idea, please share with us.
Looking forward to your reply.</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>