#!/bin/csh ############################################################### # Sets the volume using a stored settings file that I like. ############################################################## ############################################################### # The sound card I was using had a stupid stupid bug, in both # Windows and Linux. When it plays a new sound, it first # burps out the first bit of the last sound it played, including # both songs and system sounds. How annoying. So, I put this # in here to turn down the volume and play the burp quietly. # HOWEVER -- ARGH!!!! it turns out that the burp comes at the # END of the sounds; it must be playing out the whole buffer # even if the sound uses only a fraction of the last buffer, # and it must not be clearing the rest of the buffer. ############################################################## #aumix -v0 #set dir = `musicbox_sounds_directory.txt` #play "$dir"/quietburst.wav # This first set tells where we really want to be. \rm -f /tmp/aumixrc touch /tmp/aumixrc echo "vol:70:70:P" >> /tmp/aumixrc echo "pcm:100:100:P" >> /tmp/aumixrc echo "speaker:100:100:P" >> /tmp/aumixrc echo "line:0:0:P" >> /tmp/aumixrc echo "mic:0:0:R" >> /tmp/aumixrc echo "cd:0:0:P" >> /tmp/aumixrc echo "igain:0:0:P" >> /tmp/aumixrc echo "line1:100:100:P" >> /tmp/aumixrc echo "phin:0:0:P" >> /tmp/aumixrc echo "phout:0:0:P" >> /tmp/aumixrc echo "video:100:100:P" >> /tmp/aumixrc aumix -f /tmp/aumixrc -L > /dev/null \rm -f /tmp/aumixrc exit 0