Comment 0 for bug 368121

mathew (meta23) wrote :

Binary package hint: mpd

Opening another bug report for this, because none of the stuff in #221951 applies.

I've got Ubuntu running headless on a 1GHz M10000. It was fine with 8.04 and 8.10, but since upgrading to 9.04 MPD is chewing CPU. Every few seconds it spikes to 30% CPU usage.

I'm not running PulseAudio, so it's not that. (I have libpulse0 installed because MPD demands it, but no other packages matching *pulse*.)

I've tried explicitly stating that I want ALSA output in /etc/mpd.conf, and that doesn't help. Right now it's:
audio_output {
  type "alsa"
  format 44100:16:2
  name "audio out"
}

The MP3 files are sourced from 44.1kHz 16 bit rips of CDs, so it's not a sample rate issue.

/var/log/mpd/errors.log says
Apr 27 13:17 : problems opening audio device while playing "meta/Orchestral_Manoeuvres_in_the_Da/Organisation_Remastered/08-Promise.mp3"
Apr 27 13:17 : problems opening audio device while playing "meta/Orchestral_Manoeuvres_in_the_Da/Organisation_Remastered/08-Promise.mp3"
Apr 27 13:17 : problems opening audio device while playing "meta/Orchestral_Manoeuvres_in_the_Da/Organisation_Remastered/09-Stanlow.mp3"
etc.

The CPU usage peaks so badly that the audio is glitching. I upped the audio_buffer_size to 16384 to get something listenable. Suggestions?