<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 - Feature request: do not resample nor output sound with 0 usage"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103569">103569</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Feature request: do not resample nor output sound with 0 usage
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (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>daemon
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>Hi-Angel@yandex.ru
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lennart@poettering.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre># Steps to reproduce:

1. Run a soundtrack in VLC
2. Disable sound in VLC, or alternatively lower it to 0
3. Run `top`, and check CPU-load of pulseaudio

# Expected results:

You should see almost the same usage as if pulseaudio was idle

# Actual results:

Pulseaudio loads CPU around ≈4-5%.

# Real-world significancy:

Initially I found the problem for figuring out why pulseaudio loads CPU to 10%
(not even 5% as with VLC!) when I ain't play anything. Pavucontrol shows that
no apps are using sound. Long story short, I went as far as to disable
pulseaudio, and then noted something funny in `top`: one Qutebrowser tab been
loading my CPU to 2-3%. I immediately figured it out: it's a crappy
"freelancer.com" site, no surprise. After it's closed, the again enabled
pulseudio does not load my CPU anymore.

I think they maybe play some static noise at 0 sound. Pulseaudio surely can
detect it, because I do not see at pavucontrol's "audio usage" line any jumps.

Other applications: speech-dispatcher streams might be doing something alike
<a href="https://bbs.archlinux.org/viewtopic.php?id=222857">https://bbs.archlinux.org/viewtopic.php?id=222857</a>

I also found this Ubuntu bug
<a href="https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/207135">https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/207135</a> despite tagged
"fix released", peoples keep complaining. My guess it might be related.</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>