I thought this might benefit some of you folks.
I find that esd is pretty cool when it comes to figuring out if you have
got a mail when you are listening to music.
There are other uses too of course.
Here is a short writeup.
------------------------------------------------------------------------
Before we start, my .procmailrc ;)
:0
*
{
:0 c
| esdplay /store/sounds/chimes.wav
:0
inbox/
}
Note that if you want simultaneous audio playback using the esd daemon,
then *all* the players should go thro' the ESD daemon.
If you use play instead of esdplay above it won't work.
Now let us first get mplayer to support esd.
$mplayer -ao help
does not report esd. So you have to compile it from ports.
# cd /usr/ports/x11/mplayer
# env FLAVOR="esd sdl" make install
(Before that you will have to uninstall existing mplayer)
Test whether it support esd now.
$mplayer -ao help
Good.
Now get my /etc/mplayer/mplayer.conf
font=/usr/local/lib/X11/fonts/mscorefonts/comicbd.ttf
subfont-osd-scale=5
subfont-text-scale=6
vf=hue,eq2,screenshot
ao=esd
menu=yes
osdlevel=3
Check out the 'ao=esd' line.
That is all to it.
It will be cool if we can ask esd to start up at boot.
/etc/rc.local
if [ -x /usr/local/bin/esd ];then
echo -n "esd"
/usr/local/bin/esd&
fi
------------------------------------------------------------------------
Thanks.
Should you have any questions, don't hesitate to ask.
-Girish