<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 --- - Playing audio with smart resampling"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=57503">57503</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>Playing audio with smart resampling
          </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>mathojojo@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>daemon
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hello,

It's not really a bug I'm describbing, but a feature.

By default, pulseaudio is resampling all audio streams to 16bit 44.1 Khz
format, if set so.

It would be much better if pulseaudio smartly choose the best resampling
format, while analysing what client is playing.

There should be maybe 3 or 4 level :

 First   : - All audio players (Amarok, Clementine, Listen, Rhythmbox,...)

 Second  : - Video players (VLC, Dragon PLayer, mplayer ...)
           - Games

 Third   : - System sounds
           - Flash plugin
           - All other sound clients ....


When you are playing an audio file (and more if it is a lossless audio file),
you expect this file to be played in his native format, without any compression
or resampling process.

If this file is 24b-192KHz, then pulseaudio should dynamically switch to this
format, and all other sounds (system, video, ...) should be resampled to this
format too.
If this file is a 16b-44.1KHz, it should be played so, even if a video playing
at the same moment is using a better format... (the sound from the video should
be then resampled to 16b-44.1KHz.

If nothing is played but system sounds, then those system sounds should be
played in the system sound native format...

All is finally sorted by priority.


Actually, If I want to play my files (most flac, but I have variety of them
from 16b 44.1KHz to 24b-192KHz) in the native format, I need to uninstall
pulseaudio. But doing so, I can't play sounds from more than 1 source anymore.

Please, make pulseaudio even more smart.

Thank you.</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>