"Fossies" - the Fresh Open Source Software Archive

Member "modutils-2.4.27/kerneld/GOODIES/do_sound" (5 Jan 2001, 434 Bytes) of package /linux/misc/old/modutils-2.4.27.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 # If you allow the echo to execute, you might be able to easier distinguish
    3 # between different apps, especially if you are running X
    4 #echo $* >> /tmp/sndlog
    5 
    6 # This works for me when running X: xbiff differed from the others...
    7 if [ $3 = "13" ]
    8 then
    9     cat /usr/lib/sounds/tada.au > /dev/audio
   10 else
   11     cat /usr/lib/sounds/ding.au > /dev/audio
   12 fi
   13 # Hint: I swiped some .wav from W****** and used sox to create *.au from them...