]> git.zerfleddert.de Git - micropolis/blob - res/sounds/player
af26836209fb6819399f13f00d7b5c14f59db628
[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