<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Volume controll bug if balans adjust"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=71025#c10">Comment # 10</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Volume controll bug if balans adjust"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=71025">bug 71025</a>
              from <span class="vcard"><a class="email" href="mailto:superquad.vortex2@gmail.com" title="Raymond <superquad.vortex2@gmail.com>"> <span class="fn">Raymond</span></a>
</span></b>
        <pre><a href="http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/utils/pactl.c">http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/utils/pactl.c</a>

if volume of each channel can really be adjusted by percentage, it should not
use pa_volume_avg

static void volume_relative_adjust(pa_cvolume *cv) {
    pa_assert((volume_flags & VOL_RELATIVE) == VOL_RELATIVE);

    /* Relative volume change is additive in case of UINT or PERCENT
     * and multiplicative for LINEAR or DECIBEL */
    if ((volume_flags & 0x0F) == VOL_UINT || (volume_flags & 0x0F) ==
VOL_PERCENT) {
        pa_volume_t v = pa_cvolume_avg(cv);
        v = v + volume < PA_VOLUME_NORM ? PA_VOLUME_MUTED : v + volume -
PA_VOLUME_NORM;
        pa_cvolume_set(cv, 1, v);
    }</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>