checking in the recent efforts at optimizing clam
[feisty_meow.git] / scripts / multimedia / sound_play.sh
index 250bddb41d17e48f852ba41ba394247c8a232554..66b859f9f41397e5fae8da56d78810b4b0c3e0af 100644 (file)
@@ -14,6 +14,9 @@ export BASIC_PLAY_CMD='echo Unknown basic sound player...'
 if [ -f "/usr/bin/play" ]; then
 #echo we see /usr/bin/play available...
   BASIC_PLAY_CMD=/usr/bin/play
 if [ -f "/usr/bin/play" ]; then
 #echo we see /usr/bin/play available...
   BASIC_PLAY_CMD=/usr/bin/play
+elif [ ! -z "$WINDIR" ]; then
+#echo "kludge for win32; we provide our own sound player."
+  BASIC_PLAY_CMD=playsound
 elif [ ! -z "$(whichable afplay)" ]; then
 #echo we see afplay available...
   BASIC_PLAY_CMD=afplay
 elif [ ! -z "$(whichable afplay)" ]; then
 #echo we see afplay available...
   BASIC_PLAY_CMD=afplay
@@ -26,9 +29,6 @@ elif [ ! -z "$(psfind esd)" ]; then
 elif [ ! -z "$(psfind pulseaudio)" ]; then
 #echo we see pulse running...
   BASIC_PLAY_CMD="padsp aplay"
 elif [ ! -z "$(psfind pulseaudio)" ]; then
 #echo we see pulse running...
   BASIC_PLAY_CMD="padsp aplay"
-elif [ ! -z "$WINDIR" ]; then
-#echo kludge for win32; we provide our own sound player.
-  BASIC_PLAY_CMD=playsound
 else
   echo "I don't know how to play basic sound files for this OS and sound system."
 fi
 else
   echo "I don't know how to play basic sound files for this OS and sound system."
 fi