]> cvs.zerfleddert.de Git - micropolis/blob - res/sounds/player
inform user, when no audio player is found
[micropolis] / res / sounds / player
1 #!/bin/bash
2
3 PLAYER=
4
5 if [ -x "`which aplay`" ]; then
6 PLAYER=aplay
7 elif [ -x "`which play`" ]; then
8 PLAYER=play
9 elif [ -x "`which mplayer`" ]; then
10 PLAYER="mplayer -nogui -nocache"
11 fi
12
13 if [ "x${PLAYER}" = "x" ]; then
14 echo "Can't find audio player!"
15 echo "Please make sure you have aplay, play or mplayer in your path."
16 if [ "`uname`" = "Darwin" ]; then
17 echo "A working play for OS X is available from:"
18 echo "http://www.hieper.nl/html/play.html"
19 fi
20 else
21 exec ${PLAYER} "$@" >/dev/null 2>&1
22 fi
Impressum, Datenschutz