#!/bin/sh
#
# Open any of the /dev/dsp* files to get the sound input from
# your soundcard.

case $1 in
        play)
                sox -t ossdsp -r 44100 -w -s -c 2 $2 -t .raw -
                exit 0
                ;;
        isOurFile)
                if ( echo $2 | grep -q "/dev/dsp" ); then
                        exit 0
                else
                        exit 1
                fi
                ;;
esac

exit 1
