projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b1627bd
)
added mac sound play command
author
Chris Koeritz
<cak0l@virginia.edu>
Thu, 21 Oct 2021 16:02:05 +0000
(12:02 -0400)
committer
Chris Koeritz
<cak0l@virginia.edu>
Thu, 21 Oct 2021 16:02:05 +0000
(12:02 -0400)
scripts/multimedia/sound_play.sh
patch
|
blob
|
history
diff --git
a/scripts/multimedia/sound_play.sh
b/scripts/multimedia/sound_play.sh
index 962efd61318fe8493c064e494f2afac4604165f6..382d773852adfab8cca3a66c4c990127355efe05 100644
(file)
--- a/
scripts/multimedia/sound_play.sh
+++ b/
scripts/multimedia/sound_play.sh
@@
-11,20
+11,23
@@
fi
export PLAYCMD=/usr/bin/play
if [ ! -f "$PLAYCMD" ]; then
export PLAYCMD=/usr/bin/play
if [ ! -f "$PLAYCMD" ]; then
- PLAYCMD=
echo
+ PLAYCMD=
'echo Unknown sound player...'
fi
fi
-if [ ! -z "$(psfind artsd)" ]; then
- # we see artsd running...
+if [ ! -z "$(which afplay)" ]; then
+#echo we see afplay available...
+ PLAYCMD=afplay
+elif [ ! -z "$(psfind artsd)" ]; then
+#echo we see artsd running...
PLAYCMD=artsplay
elif [ ! -z "$(psfind esd)" ]; then
PLAYCMD=artsplay
elif [ ! -z "$(psfind esd)" ]; then
-
#
we see esd running...
+
#echo
we see esd running...
PLAYCMD=esdplay
elif [ ! -z "$(psfind pulseaudio)" ]; then
PLAYCMD=esdplay
elif [ ! -z "$(psfind pulseaudio)" ]; then
-
#
we see pulse running...
+
#echo
we see pulse running...
PLAYCMD="padsp aplay"
elif [ ! -z "$WINDIR" ]; then
PLAYCMD="padsp aplay"
elif [ ! -z "$WINDIR" ]; then
-
#
kludge for win32; we provide our own sound player.
+
#echo
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."
PLAYCMD=playsound
else
echo "I don't know how to play sounds for this OS and sound system."