<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - pacat fails in pa_stream_write() for some channel counts"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98475#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - pacat fails in pa_stream_write() for some channel counts"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98475">bug 98475</a>
              from <span class="vcard"><a class="email" href="mailto:darwish.07@gmail.com" title="Ahmed S. Darwish <darwish.07@gmail.com>"> <span class="fn">Ahmed S. Darwish</span></a>
</span></b>
        <pre>These are 3 bugs in one psymptom ;-) Fixes for the first two are sent here:

   
<a href="https://lists.freedesktop.org/archives/pulseaudio-discuss/2016-November/027175.html">https://lists.freedesktop.org/archives/pulseaudio-discuss/2016-November/027175.html</a>

   
<a href="https://lists.freedesktop.org/archives/pulseaudio-discuss/2016-November/027176.html">https://lists.freedesktop.org/archives/pulseaudio-discuss/2016-November/027176.html</a>

Due to the above two fixes, commands like below ones now work succesfully:

    pacat --channels=3 /dev/urandom
    pacat --channels=5 /dev/urandom

Third issue can be reproduced with the following command:

    pacat  --channels=3 /dev/random

Note device change from urandom to random. Above final issue makes
pa_stream_write() fails with EINVAL due to misaligned audio - which resulted
from an incomplete pa_read() due to /dev/random strict randomness semantics.
Maybe we should use a ring buffer in that case. Third patch to be sent soon.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>