]>
git.zerfleddert.de Git - micropolis/blob - res/sounds/player
d85309ca28903d2b2f7cfab9d968bd00071d868c
5 if [ -x "`which aplay`" ]; then
7 elif [ -x "`which afplay`" ]; then
8 #afplay is shipped with OS X Leopard
10 elif [ -x "`which play`" ]; then
12 elif [ -x "`which mplayer`" ]; then
13 PLAYER
="mplayer -nogui -nocache"
16 if [ "x${PLAYER}" = "x" ]; then
17 echo "Can't find audio player!"
18 echo "Please make sure you have aplay, play or mplayer in your path."
19 if [ "`uname`" = "Darwin" ]; then
20 echo "A working play for OS X is available from:"
21 echo "http://www.hieper.nl/html/play.html"
24 exec ${PLAYER} "$@" >/dev
/null
2>&1