Raspberry Pi MPD audio without the pop and crackle

Using MPD as a music player on a Raspberry Pi is a great solution.

One annoying thing is the pop that happens on the audio port every time a song plays and finishes.

One way around this is to use PulseAudio rather than ALSA. These sites detail the solution
https://dbader.org/blog/crackle-free-audio-on-the-raspberry-pi-with-mpd-and-pulseaudio
https://github.com/raspberrypi/linux/issues/128

So I installed PulseAudio

sudo apt-get install pulseaudio

and changed the mpd.conf to the following

audio_output {
 type "pulse"
 name "MPD PulseAudio Output"
}

Then edit /etc/pulse/default.pa and remove or comment out load-module module-suspend-on-idle. This is the important part that prevents PulseAudio from sending the audio hardware to sleep. Then restart your Pi.

Now I have no more pops.

On to the next phase – streaming to multiple players.

Update – 5Aug2013.
The lastest version of Raspbian “wheezy” downloaded from the Raspberry Pi website has this issue fixed. Version at the time of writing was 2013-07-26-wheezy-raspbian

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s