1997-02-26 13:11:07 +00:00
|
|
|
#! /bin/sh
|
|
|
|
##
|
|
|
|
## vboxplay v@VERSION@ (@VERDATE@)
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------#
|
|
|
|
# Usage: vboxplay SAMPLENAME [ VOLUME ] #
|
|
|
|
#----------------------------------------------------------------------------#
|
|
|
|
|
1997-04-28 16:55:00 +00:00
|
|
|
SAMPLE=$1
|
|
|
|
VOLUME=$2
|
1999-10-15 11:22:46 +00:00
|
|
|
if [ "$VOLUME" == "" ]; then
|
|
|
|
VOLUME=5;
|
|
|
|
fi
|
|
|
|
|
1997-04-28 16:55:00 +00:00
|
|
|
|
1997-02-26 13:11:07 +00:00
|
|
|
# Replace this with your own play command. You also can use the pvftools
|
|
|
|
# (or some other) to convert and play the messages.
|
|
|
|
|
1999-10-15 11:22:46 +00:00
|
|
|
# DOPLAY="/usr/local/bin/auplay -audio localhost:0 -volume $VOLUME"
|
|
|
|
DOPLAY="/usr/bin/play -t au -v $VOLUME -"
|
1997-02-26 13:11:07 +00:00
|
|
|
|
1997-04-28 16:55:00 +00:00
|
|
|
@BINDIR@/vboxmode $SAMPLE
|
1997-02-26 13:11:07 +00:00
|
|
|
|
|
|
|
case $? in
|
|
|
|
|
1997-04-28 16:55:00 +00:00
|
|
|
2|3|4|6) @BINDIR@/vboxtoau <$SAMPLE | $DOPLAY
|
1997-02-26 13:11:07 +00:00
|
|
|
;;
|
|
|
|
*) echo "$0: unknown vbox message format!"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Example with pvftools:
|
|
|
|
#
|
1997-04-28 16:55:00 +00:00
|
|
|
# vboxtoau <$SAMPLE | \
|
1997-02-26 13:11:07 +00:00
|
|
|
# autopvf | \
|
1997-04-28 16:55:00 +00:00
|
|
|
# pvfamp $VOLUME | \
|
1997-02-26 13:11:07 +00:00
|
|
|
# pvfcut 0.20 | \
|
|
|
|
# pvftoau 8000 | \
|
|
|
|
# auplay
|