projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eclipse modified file
[feisty_meow.git]
/
scripts
/
multimedia
/
sound_play.sh
diff --git
a/scripts/multimedia/sound_play.sh
b/scripts/multimedia/sound_play.sh
index 36652ff2b42e2ddf5b093e3608a5178e78240de8..962efd61318fe8493c064e494f2afac4604165f6 100644
(file)
--- a/
scripts/multimedia/sound_play.sh
+++ b/
scripts/multimedia/sound_play.sh
@@
-2,7
+2,7
@@
# play the sound files specified.
# play the sound files specified.
-source "$
SHELLDIR/core/functions.sh" # provides psfind.
+source "$
FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
if [ $# -lt 1 ]; then
#echo no sound file specified.
if [ $# -lt 1 ]; then
#echo no sound file specified.
@@
-20,9
+20,14
@@
if [ ! -z "$(psfind artsd)" ]; then
elif [ ! -z "$(psfind esd)" ]; then
# we see esd running...
PLAYCMD=esdplay
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
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
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
for i in $*; do $PLAYCMD $i >/dev/null 2>&1; done
exit 0
+