1
# $NCDId: @(#)sound.sh,v 1.1 1994/04/27 23:48:56 greg Exp $
4
AUDIOSERVER=:0 export AUDIOSERVER
5
PIDFILE=/usr/local/lib/aupid
7
AUPLAY=/usr/local/bin/auplay
8
UPSOUND=/home/incoming/Sounds/tada.wav
9
DOWNSOUND=/home/incoming/Sounds/mind.wav
12
echo "Starting sound server..."
16
echo $AUPID > $PIDFILE
18
# Whip it into the Real Time class - doesn't hurt us & gives it
19
# CPU when it does need it.
21
if [ -x /usr/bin/priocntl ]
23
priocntl -c RT -s -i pid $AUPID
34
kill -15 `cat $PIDFILE`