3 # Purpose: test sound on your grml system
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2.
7 # Latest change: Sam Jän 19 17:08:34 CET 2008 [mika]
8 ################################################################################
12 if [ -z "$PLAYER" ] ; then
13 [ -x /usr/bin/mplayer ] && PLAYER="mplayer"
14 [ -x /usr/bin/ogg123 ] && PLAYER="ogg123"
17 if ! [ $(which $PLAYER) ] ; then
18 echo "Sorry, neither mplayer nor ogg123 available and \$PLAYER is not set.">&2
23 FILE="/usr/share/grml/effect.ogg"
28 if ! [ -r "$FILE" ] ; then
29 echo "Sorry, /usr/share/grml/effect.ogg of package grml-files not available.">&2
33 echo "$PN - trying to play $FILE with $PLAYER
35 You do not hear anything? Make sure volume is not turned off.
36 Adjust mixer settings via aumix or alsamixer.
38 Tip: $PN supports some options.
39 Just provide the file(s) you want to play as argument(s),
40 adjust player which should be used for playing the files
41 via environment variable PLAYER. Usage example:
43 PLAYER=mplayer $PN /usr/share/grml/effect.ogg /another/file/to/play.mp3
46 $PLAYER $FILE && echo "It looks like sound works for you. :-)" || echo "problems with sound? :-("
48 ## END OF FILE #################################################################