This is what showed up in the debug log as it skipped:<br><br>( 684.030| 5.000) I: [alsa-sink] alsa-sink.c: Underrun!<br>( 684.030| 0.000) I: [alsa-sink] alsa-sink.c: Increasing minimal latency to 26.00 ms<br>( 684.030| 0.000) D: [alsa-sink] alsa-sink.c: Latency set to 26.00ms<br>
( 684.030| 0.000) D: [alsa-sink] alsa-sink.c: hwbuf_unused=60952<br>( 684.030| 0.000) D: [alsa-sink] alsa-sink.c: setting avail_min=15944<br>( 684.030| 0.000) D: [alsa-sink] alsa-sink.c: Latency set to 26.00ms<br>( 684.030| 0.000) D: [alsa-sink] alsa-sink.c: hwbuf_unused=60952<br>
( 684.030| 0.000) D: [alsa-sink] alsa-sink.c: setting avail_min=15944<br>( 684.031| 0.000) D: [alsa-sink] protocol-native.c: Underrun on 'ALSA Playback', 0 bytes in queue.<br>( 684.036| 0.004) D: [alsa-sink] protocol-native.c: Requesting rewind due to end of underrun.<br>
( 684.036| 0.000) D: [alsa-sink] alsa-sink.c: Requested to rewind 10940 bytes.<br>( 684.036| 0.000) D: [alsa-sink] alsa-sink.c: Limited to 3320 bytes.<br>( 684.036| 0.000) D: [alsa-sink] alsa-sink.c: before: 830<br>
( 684.036| 0.000) D: [alsa-sink] alsa-sink.c: after: 830<br>( 684.036| 0.000) D: [alsa-sink] alsa-sink.c: Rewound 3320 bytes.<br>( 684.036| 0.000) D: [alsa-sink] sink.c: Processing rewind...<br>( 684.036| 0.000) D: [alsa-sink] sink.c: latency = 1337<br>
( 684.036| 0.000) D: [alsa-sink] sink-input.c: Have to rewind 3320 bytes on render memblockq.<br>( 684.036| 0.000) D: [alsa-sink] source.c: Processing rewind...<br>( 696.234| 12.197) I: [alsa-sink] alsa-sink.c: Underrun!<br>
( 696.234| 0.000) I: [alsa-sink] alsa-sink.c: Increasing wakeup watermark to 15.99 ms<br>( 702.033| 5.799) I: [alsa-sink] alsa-sink.c: Underrun!<br>( 702.033| 0.000) I: [alsa-sink] alsa-sink.c: Increasing minimal latency to 36.00 ms<br>
( 702.033| 0.000) D: [alsa-sink] alsa-sink.c: Latency set to 36.00ms<br>( 702.033| 0.000) D: [alsa-sink] alsa-sink.c: hwbuf_unused=59188<br>( 702.033| 0.000) D: [alsa-sink] alsa-sink.c: setting avail_min=15680<br>( 702.033| 0.000) D: [alsa-sink] alsa-sink.c: Latency set to 36.00ms<br>
( 702.034| 0.000) D: [alsa-sink] alsa-sink.c: hwbuf_unused=59188<br>( 702.034| 0.000) D: [alsa-sink] alsa-sink.c: setting avail_min=15680<br>( 702.034| 0.000) D: [alsa-sink] protocol-native.c: Underrun on 'ALSA Playback', 0 bytes in queue.<br>
<br>...and it goes on.<br><br>The "Underrun!" messages happened a few times before, but it didn't skip. The "rewind" messages sound like the ominous part to me.<br><br>Any idea what's wrong with my setup? What can I do from here? Thanks!<br>
<br><br>Charles<br><br><br><div class="gmail_quote">On Thu, May 3, 2012 at 10:44 PM, Tanu Kaskinen <span dir="ltr"><<a href="mailto:tanu.kaskinen@digia.com" target="_blank">tanu.kaskinen@digia.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, 2012-05-03 at 22:32 -0700, Charles Lindsay wrote:<br>
> Hey guys, I was hoping I could get some help debugging a problem I'm<br>
> having with PulseAudio.<br>
><br>
> If I'm playing music via any source (Exaile, Totem, Flash in Firefox<br>
> or Chromium, VLC, etc.) every few minutes the audio will skip once or<br>
> twice. top doesn't show any process eating CPU any more when it<br>
> happens. dmesg doesn't show anything. Nothing else seems to be<br>
> affected. It doesn't seem to happen regularly.<br>
><br>
> I just installed Ubuntu 12.04 from scratch (with pulseaudio<br>
> 1:1.1-0ubuntu15), but the same thing happened in 10.04 on the same<br>
> hardware. Uninstalling the PulseAudio packages and going back to ALSA<br>
> gives me no issues whatsoever, which is how I know the issue is with<br>
> PulseAudio. I'm using my onboard audio device:<br>
><br>
> $ lspci | grep Audio<br>
> 00:14.2 Audio device: Advanced Micro Devices [AMD] nee ATI SBx00<br>
> Azalia (Intel HDA)<br>
><br>
> Any clues what's going on? Is there any PulseAudio log I can look at?<br>
> Is there any way to debug the issue at all? Should I just file a bug?<br>
> I'd like to use PulseAudio since it's so integrated into Ubuntu these<br>
> days, but it's annoying enough that if the issue continues I can't.<br>
> Thanks!<br>
<br>
</div></div>I'd start from checking if there's anything printed to Pulseaudio log<br>
when the skips happen. Open a terminal, then enter these commands:<br>
<br>
echo autospawn = no >> ~/.pulse/client.conf<br>
killall pulseaudio<br>
LANG=C pulseaudio -vvvv --log-time<br>
<br>
Then start playing something. Then press enter in the pulseaudio<br>
terminal window a couple of times to get some emtpy lines in the log.<br>
Then wait for the problem to happen. When it happens, check the terminal<br>
window - what has been printed to the log after the empty lines? If you<br>
can reproduce this by doing absolutely nothing, then you can stare at<br>
the terminal window all the time to make sure that whatever is printed<br>
to the log, it is actually printed at the same time when the skips<br>
happen.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Tanu<br>
<br>
_______________________________________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@lists.freedesktop.org">pulseaudio-discuss@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss" target="_blank">http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss</a><br>
</font></span></blockquote></div><br>