<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Volume-change problems"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89729">89729</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Volume-change problems
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Spice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>server
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>spice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>me@victortoso.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Creating this bug to track volume-change issues between guest and client. I
believe that big part of these issues are in QEMU that calls spice-server with
the wrong volume value (proportionally) but the solution could be done in the
using vdagent to check/sync audio properly;

This is also related to <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1012868">https://bugzilla.redhat.com/show_bug.cgi?id=1012868</a> as
we are trying to sync volume between client and guest using the agent but the
server sends volume-change with different value of the one just set by the
agent and usually higher then the right value.

Main issues when setting guest volume;

1) F21(client) and F21(guest) - The value sent by spice-server is always higher
then the updated value in the guest;

2) F21(client) and Windows 7(guest) - Same as 1)

3) Windows 7(client) to Windows XP(guest): Setting 100% in the guest is 74% in
the client;

Example:
client: Fedora 21 (all spice components from git master)
guest: Fedora 21 (latests from f21)
volume in both before: 32768 or -18.06 dB (50%)
setting volume with `pacmd set-sink-volume 0 volume`
setting 10000 (around 15%), spice-gtk receives 22102 (33%)
setting 40000 (around 61%), spice-gtk receives 53970 (82%)
setting 50000 (around 76%), spice-gtk receives 59110 (90%)
setting 60000 (around 91%), spice-gtk receives 63736 (97%)
setting 65000 hits the maximum in the client (65536)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>