<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - "Transistor" game makes every client playing at double speed"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=87713#c62">Comment # 62</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - "Transistor" game makes every client playing at double speed"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=87713">bug 87713</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>
what is the smallest buffer size which aplay without underrun ?
1024,512,256,128,64,...


aplay -D front:CARD=CA0106 -v --buffer-size=1024 stereo48000.wav


19:29:42 homecomp pulseaudio[1911]: Protocol version: remote 26, local 29
Dec 25 19:29:42 homecomp pulseaudio[1911]: Got credentials: uid=1000 gid=1000
success=1
Dec 25 19:29:42 homecomp pulseaudio[1911]: SHM possible: yes
Dec 25 19:29:42 homecomp pulseaudio[1911]: Negotiated SHM: yes
Dec 25 19:29:42 homecomp pulseaudio[1911]: Looking for .desktop file for
Transistor.bin.x86_64
Dec 25 19:29:42 homecomp pulseaudio[1911]: Not setting device for stream ALSA
Playback, because it lacks role.
Dec 25 19:29:42 homecomp pulseaudio[1911]: Negotiated format: pcm,
format.sample_format = "\"s16le\""  format.rate = "48000"  format.channels =
"2"  format.channel_map = "\"front-left,front-right\""
Dec 25 19:29:42 homecomp pulseaudio[1911]: Sink
alsa_output.pci-0000_06_00.0.analog-stereo becomes busy, resuming.
Dec 25 19:29:42 homecomp pulseaudio[1911]: memblockq requested:
maxlength=33554432, tlength=0, base=4, prebuf=0, minreq=1 maxrewind=0
Dec 25 19:29:42 homecomp pulseaudio[1911]: memblockq sanitized:
maxlength=33554432, tlength=33554432, base=4, prebuf=0, minreq=4 maxrewind=0
Dec 25 19:29:42 homecomp pulseaudio[1911]: Created input 15 "ALSA Playback" on
alsa_output.pci-0000_06_00.0.analog-stereo with sample spec s16le 2ch 48000Hz
and channel map front-left,front-right
Dec 25 19:29:42 homecomp pulseaudio[1911]:     media.name = "ALSA Playback"
Dec 25 19:29:42 homecomp pulseaudio[1911]:     application.name = "ALSA plug-in
[Transistor.bin.x86_64]"
Dec 25 19:29:42 homecomp pulseaudio[1911]:     native-protocol.peer = "UNIX
socket client"
Dec 25 19:29:42 homecomp pulseaudio[1911]:     native-protocol.version = "26"
Dec 25 19:29:42 homecomp pulseaudio[1911]:     application.process.id = "9536"
Dec 25 19:29:42 homecomp pulseaudio[1911]:     application.process.user =
"rkfg"
Dec 25 19:29:42 homecomp pulseaudio[1911]:     application.process.host =
"homecomp"
Dec 25 19:29:42 homecomp pulseaudio[1911]:     application.process.binary =
"Transistor.bin.x86_64"
Dec 25 19:29:42 homecomp pulseaudio[1911]:     application.language =
"en_GB.UTF-8"
Dec 25 19:29:42 homecomp pulseaudio[1911]:     window.x11.display = ":0.0"
Dec 25 19:29:42 homecomp pulseaudio[1911]:     application.process.machine_id =
"3be8f38f291dd2003af500d051c0a849"
Dec 25 19:29:42 homecomp pulseaudio[1911]:     application.process.session_id =
"10"
Dec 25 19:29:42 homecomp pulseaudio[1911]:     module-stream-restore.id =
"sink-input-by-application-name:ALSA plug-in [Transistor.bin.x86_64]"
Dec 25 19:29:42 homecomp pulseaudio[1911]: Requested tlength=85.33 ms,
minreq=21.33 ms
Dec 25 19:29:42 homecomp pulseaudio[1911]: Early requests mode enabled,
configuring sink latency to minreq.
Dec 25 19:29:42 homecomp pulseaudio[1911]: Requested latency=21.33 ms, Received
latency=26.00 ms
Dec 25 19:29:42 homecomp pulseaudio[1911]: memblockq requested:
maxlength=4194304, tlength=16384, base=4, prebuf=11396, minreq=4992 maxrewind=0
Dec 25 19:29:42 homecomp pulseaudio[1911]: memblockq sanitized:
maxlength=4194304, tlength=16384, base=4, prebuf=11396, minreq=4992 maxrewind=0
Dec 25 19:29:42 homecomp pulseaudio[1911]: Final latency 111.33 ms = 33.33 ms +
2*26.00 ms + 26.00 ms
Dec 25 19:29:42 homecomp pulseaudio[1911]: Latency set to 26.00ms
Dec 25 19:29:42 homecomp pulseaudio[1911]: hwbuf_unused=60544
Dec 25 19:29:42 homecomp pulseaudio[1911]: setting avail_min=15617
Dec 25 19:29:42 homecomp pulseaudio[1911]: Requested volume: front-left: 52559
/  80% / -5.75 dB,   front-right: 52559 /  80% / -5.75 dB
Dec 25 19:29:42 homecomp pulseaudio[1911]: Got hardware volume: front-left:
53066 /  81% / -5.50 dB,   front-right: 53066 /  81% / -5.50 dB
Dec 25 19:29:42 homecomp pulseaudio[1911]: Calculated software volume:
front-left: 64910 /  99% / -0.25 dB,   front-right: 64910 /  99% / -0.25 dB
(accurate-enough=yes)
Dec 25 19:29:42 homecomp pulseaudio[1911]: Volume not changing
Dec 25 19:29:42 homecomp pulseaudio[1911]: Requesting rewind due to end of
underrun.
Dec 25 19:29:42 homecomp pulseaudio[1911]: Requested to rewind 65536 bytes.
Dec 25 19:29:42 homecomp pulseaudio[1911]: Limited to 3904 bytes.
Dec 25 19:29:42 homecomp pulseaudio[1911]: before: 976
Dec 25 19:29:42 homecomp pulseaudio[1911]: after: 976
Dec 25 19:29:42 homecomp pulseaudio[1911]: Rewound 3904 bytes.
Dec 25 19:29:42 homecomp pulseaudio[1911]: Processing rewind...
Dec 25 19:29:42 homecomp pulseaudio[1911]: latency = 65877
Dec 25 19:29:42 homecomp pulseaudio[1911]: Have to rewind 3904 bytes on render
memblockq.
Dec 25 19:29:42 homecomp pulseaudio[1911]: Have to rewind 3904 bytes on render
memblockq.
Dec 25 19:29:42 homecomp pulseaudio[1911]: Have to rewind 3904 bytes on render
memblockq.
Dec 25 19:29:42 homecomp pulseaudio[1911]: Processing rewind...
Dec 25 19:29:42 homecomp pulseaudio[1911]: Wakeup from ALSA!
Dec 25 19:29:42 homecomp pulseaudio[1911]: Wakeup from ALSA!
Dec 25 19:29:42 homecomp pulseaudio[1911]: Wakeup from ALSA!
Dec 25 19:30:19 homecomp pulseaudio[1911]: Requesting rewind due to corking
Dec 25 19:30:19 homecomp pulseaudio[1911]: Requested to rewind 65536 bytes.
Dec 25 19:30:19 homecomp pulseaudio[1911]: Limited to 4544 bytes.
Dec 25 19:30:19 homecomp pulseaudio[1911]: before: 1136
Dec 25 19:30:19 homecomp pulseaudio[1911]: after: 1136
Dec 25 19:30:19 homecomp pulseaudio[1911]: Rewound 4544 bytes.
Dec 25 19:30:19 homecomp pulseaudio[1911]: Processing rewind...
Dec 25 19:30:19 homecomp pulseaudio[1911]: latency = 1234
Dec 25 19:30:19 homecomp pulseaudio[1911]: Have to rewind 4544 bytes on render
memblockq.
Dec 25 19:30:19 homecomp pulseaudio[1911]: Have to rewind 4544 bytes on render
memblockq.
Dec 25 19:30:19 homecomp pulseaudio[1911]: Have to rewind 4544 bytes on render
memblockq.
Dec 25 19:30:19 homecomp pulseaudio[1911]: Have to rewind 4544 bytes on
implementor.
Dec 25 19:30:19 homecomp pulseaudio[1911]: Processing rewind...
Dec 25 19:30:19 homecomp pulseaudio[1911]: Found underrun 4864 bytes ago (128
bytes ahead in playback buffer)
Dec 25 19:30:19 homecomp pulseaudio[1911]: Found underrun 4864 bytes ago (64
bytes ahead in playback buffer)
Dec 25 19:30:19 homecomp pulseaudio[1911]: Latency set to 26.00ms
Dec 25 19:30:19 homecomp pulseaudio[1911]: hwbuf_unused=60544
Dec 25 19:30:19 homecomp pulseaudio[1911]: setting avail_min=15617</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>