somewhat silly new command "whoareyou" that makes the computer divulge its name.
[feisty_meow.git] / scripts / multimedia / sound_play.sh
index 72054185cd0e5e8a741b021464062e234bc57761..2110a4b69593f579b85285db5302ad51de7867e2 100644 (file)
@@ -20,9 +20,14 @@ if [ ! -z "$(psfind artsd)" ]; then
 elif [ ! -z "$(psfind esd)" ]; then
   # we see esd running...
   PLAYCMD=esdplay
+elif [ ! -z "$(psfind pulseaudio)" ]; then
+  # we see pulse running...
+  PLAYCMD="padsp aplay"
 elif [ ! -z "$WINDIR" ]; then
   # kludge for win32; we provide our own sound player.
   PLAYCMD=playsound
+else
+  echo "I don't know how to play sounds for this OS and sound system."
 fi
 
 # play the sounds individually; playsound can handle multiple files, but
@@ -30,3 +35,4 @@ fi
 for i in $*; do $PLAYCMD $i >/dev/null 2>&1; done
 
 exit 0
+