snarf updated from experience with new config names, utils updated with higher stack...
[feisty_meow.git] / scripts / multimedia / sound_play.sh
index f499d30ba349a28b4d868c7c4ab48fafa2a7082f..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