Raspbian: Pulseaudio tcp connection randomly hangs

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
peter_b
Chatterbox
Posts: 383
Joined: Tue Nov 12, 2013 2:05 am

Raspbian: Pulseaudio tcp connection randomly hangs

Post by peter_b »

Running RPi (Model B) on Raspbian Stretch as pulseaudio-server, connected to speakers.
Everything works like a charm, but every now and then the audio playback just stops:
The client playback applications (audio/video player - even youtube) just stop as if someone had hit "pause". When I kill/restart the pulseaudio daemon, it works again. For a short while...

For debugging, I'm now running pulseaudio in the foreground with debug output:

Code: Select all

$ pulseaudio --start --system=false --daemonize=no -vvvv
Getting the following messages that indicate something's not as flawless as it should be:
I: [alsa-sink-bcm2835 ALSA] alsa-sink.c: Underrun!
I: [alsa-sink-bcm2835 ALSA] alsa-sink.c: Increasing minimal latency to 2,00 ms
D: [alsa-sink-bcm2835 ALSA] alsa-sink.c: Latency set to 24,99ms
D: [alsa-sink-bcm2835 ALSA] alsa-sink.c: hwbuf_unused=126668
D: [alsa-sink-bcm2835 ALSA] alsa-sink.c: setting avail_min=32110
D: [alsa-sink-bcm2835 ALSA] alsa-sink.c: Latency set to 24,99ms
D: [alsa-sink-bcm2835 ALSA] alsa-sink.c: hwbuf_unused=126668
D: [alsa-sink-bcm2835 ALSA] alsa-sink.c: setting avail_min=32110
I: [alsa-sink-bcm2835 ALSA] alsa-sink.c: Scheduling delay of 20,03 ms > 14,96 ms, you might want to investigate this to improve latency...
I: [alsa-sink-bcm2835 ALSA] alsa-sink.c: Underrun!
To be continued...


Links:
Post Reply