Music Player Daemon

Installing:

sudo apt-get install mpd mpc alsa-utils

Configuration in /etc/mpd.conf:

audio_output {
        type            "alsa"
        name            "My ALSA Device"
        device          "hw:0,0"        # optional
#       format          "44100:16:2"    # optional
#       mixer_device    "default"       # optional
#       mixer_control   "PCM"           # optional
#       mixer_index     "0"             # optional
}

Configuration in /etc/modules:

snd_bcm2835

Configuration of audio output:

sudo amixer cset numid=3 1

1(one) means Stereo Jack output and 0(zero) HDMI audio output.

Restart player daemon service:

sudo /etc/init.d/mpd restart

Controlling the service

From command line:

#check mpd status
mpc
volume:100%   repeat: on    random: off   single: off   consume: off
#it seams ready let's add a internet radio 
mpc add http://s1.radio.lclhst.net:1337/
mpc play
Minimal, Techno, Electro Sets @ http://radio.lclhst.net/: Patrick Schulz - Promotional Mix - October 2008
[playing] #1/1 0:04/0:00 (0%)
volume:100% repeat: on random: off single: off consume: off

or via:

https://play.google.com/store/apps/details?id=com.namelessdev.mpdroid

[ Source: http://miro.oorganica.com/raspberry-pi-mpd/ ]