X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/6ae3b055556cfa72d72bfbc4e5a2516a72f7d60b..e20a2581da67104e8fb26ce5c4a8e620d9c1ca75:/res/sounds/player?ds=inline diff --git a/res/sounds/player b/res/sounds/player index d85309c..48e05d7 100755 --- a/res/sounds/player +++ b/res/sounds/player @@ -2,14 +2,14 @@ PLAYER= -if [ -x "`which aplay`" ]; then +if type -a aplay &>/dev/null; then PLAYER=aplay -elif [ -x "`which afplay`" ]; then +elif type -a afplay &>/dev/null; then #afplay is shipped with OS X Leopard PLAYER=afplay -elif [ -x "`which play`" ]; then +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