X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/851812f3fc226d30b4dc26ba147977e9511a82ee..3b72e7f203bdcef9c36b9fdabb5d237e3ba98ad5:/res/sounds/player?ds=inline diff --git a/res/sounds/player b/res/sounds/player index af26836..48e05d7 100755 --- a/res/sounds/player +++ b/res/sounds/player @@ -2,11 +2,14 @@ PLAYER= -if [ -x "`which aplay`" ]; then +if type -a aplay &>/dev/null; then PLAYER=aplay -elif [ -x "`which play`" ]; then +elif type -a afplay &>/dev/null; then + #afplay is shipped with OS X Leopard + PLAYER=afplay +elif type -a play &>/dev/null; then PLAYER=play -elif [ -x "`which mplayer`" ]; then +elif type -a mplayer &>/dev/null; then PLAYER="mplayer -nogui -nocache" fi