要使 MPlayer 可以支援混音,必須符合以下項目:
pcm.!default { type plug slave.pcm { type dmix ipc_key 1024 slave { pcm "hw:0,0" rate 44100 } } }
參考網站:
/etc/lirc/lircrc
begin button = mute prog = mplayer config = mute repeat = 0 end begin button = power prog = mplayer config = quit repeat = 2 end begin button = chUp prog = mplayer config = pt_step -1 repeat = 0 end begin button = chUp_V2 prog = mplayer config = pt_step -1 repeat = 0 end begin button = chDown prog = mplayer config = pt_step 1 repeat = 0 end begin button = chDown_V2 prog = mplayer config = pt_step 1 repeat = 0 end begin button = volUp prog = mplayer config = volume 47 repeat = 0 end begin button = volUp_V2 prog = mplayer config = volume 47 repeat = 0 end begin button = volDown prog = mplayer config = volume -47 repeat = 0 end begin button = volDown_V2 prog = mplayer config = volume -47 repeat = 0 end
apt-get install wget build-essential libglib2.0-dev apt-get install libasound2-dev libmms-dev libshout3-dev libmpcdec-dev libao-dev wget http://downloads.sourceforge.net/project/musicpd/mpd/0.17.3/mpd-0.17.3.tar.bz2?r=http%3A%2F%2Fmpd.wikia.com%2Fwiki%2FServer&ts=1365082963&use_mirror=nchc -O mpd-0.17.3.tar.bz2 tar xjf mpd-0.17.3.tar.bz2 cd mpd-0.17.3 ./configure --prefix=/opt/mpd make make install
下載 mpd-0.17.3.tar.bz2
開始編譯
tar xjf mpd-0.17.3.tar.bz2 cd mpd-0.17.3/