Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Orange Pi Zero Buffer underrun while playing music with MPD and Pulseaudio

Featured Replies

I'm trying to set up one of my Orange PI Zero to be a MPD Player and in parallel to play streams from other devices over network. The streams are provided by a Ubuntu desktop PC and and a Librelec PC.

The Orange Pi Zero is running Armbian 5.38 with Kernel 4.14.18.

 

I tried the last days two solutions:

  1. ALSA dmix plugin playing everything except network streams and Pulseaudio for nework streams
  2. Playing everything through Pulseaudio in system mode

The first solution failed as the dmix plugin in ALSA has poor performance and causes regularly high CPU load resulting in broken audio playback with MPD

The second solution seemed to be better suitable, but Pulseaudio crashes because of an underrun when using MPD as playback device. Network streams from other Linux PCs work properly.

From the Pulseaudio debug messages I cannot see what may be the issue.(see below)

 

Normally I would think this is a Pulseaudio or MPD issue, but then I switched to a Banana PI having the A20 equipped and everything worked well. Same Armbian and kernel version, same configurations for ALSA and Pulseaudio.  

To be sure it is not a codec issue I tried an USB sound card. This worked well on the Banana Pi with ALSA and Pulseaudio+MPD, but not on the Orange Pi Zero. There Pulseadudio stopps also with underrun error. 

 

So I think this seems to be an issue related to the Orange PI Zero. Hopefully someone can give me a workaround to solve this issue because I have 3 devices working with ALSA only which I want to upgrade with network stream support.

D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Latency set to 24,99ms
D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: hwbuf_unused=348396
D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: setting avail_min=87542
D: [alsa-sink-CDC PCM Codec-0] protocol-native.c: Requesting rewind due to end of underrun.
D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Requested to rewind 352800 bytes.
D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Limited to 3764 bytes.
D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: before: 941
D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: after: 941
D: [alsa-sink-CDC PCM Codec-0] alsa-sink.c: Rewound 3764 bytes.
D: [alsa-sink-CDC PCM Codec-0] sink.c: Processing rewind...
D: [alsa-sink-CDC PCM Codec-0] sink-input.c: Have to rewind 3764 bytes on render memblockq.
D: [alsa-sink-CDC PCM Codec-0] sink-input.c: Have to rewind 3764 bytes on render memblockq.
D: [alsa-sink-CDC PCM Codec-0] sink-input.c: Have to rewind 3764 bytes on render memblockq.
D: [alsa-sink-CDC PCM Codec-0] source.c: Processing rewind...
Killed

 

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.