add afplay to player script
[micropolis] / res / sounds / player
CommitLineData
851812f3 1#!/bin/bash
e4270049 2
851812f3 3PLAYER=
e4270049
MG
4
5if [ -x "`which aplay`" ]; then
6 PLAYER=aplay
6ae3b055
MG
7elif [ -x "`which afplay`" ]; then
8 #afplay is shipped with OS X Leopard
9 PLAYER=afplay
e4270049
MG
10elif [ -x "`which play`" ]; then
11 PLAYER=play
12elif [ -x "`which mplayer`" ]; then
13 PLAYER="mplayer -nogui -nocache"
14fi
15
851812f3
MG
16if [ "x${PLAYER}" = "x" ]; then
17 echo "Can't find audio player!"
18 echo "Please make sure you have aplay, play or mplayer in your path."
19 if [ "`uname`" = "Darwin" ]; then
20 echo "A working play for OS X is available from:"
21 echo "http://www.hieper.nl/html/play.html"
22 fi
23else
24 exec ${PLAYER} "$@" >/dev/null 2>&1
25fi
Impressum, Datenschutz