#!/bin/sh
# $Id: exrec,v 1.1 2002/07/28 18:24:00 richard Exp $

if [ -z $1 ]; then
    echo "Invokes sox to record to a wav file at 48 KHz."
    echo "usage: exrec <file> [dev]"
    exit -1
fi

if [ -z $2 ]; then
    DEV=/dev/dsp
else
    DEV=$2
fi

exec sox -t ossdsp -w -c 2 -r 48000 $DEV -t wav -w -c 2 -r 48000 $1
