]>
Commit | Line | Data |
---|---|---|
851812f3 | 1 | #!/bin/bash |
e4270049 | 2 | |
851812f3 | 3 | PLAYER= |
e4270049 MG |
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 | ||
851812f3 MG |
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 |