#! /bin/sh

DIR='/usr/local/www/data/ag/DATA'
/usr/local/bin/wavplay

echo "Content-type: text/html"
echo

str=`echo "$QUERY_STRING" | /usr/bin/awk 'gsub("audio=", ""){print $0}'`

echo $str
echo "......."

/usr/sbin/mixer pcm 100 > /dev/null
/usr/local/bin/wavplay  $DIR/$str

echo ""
echo "Done."