formats: clarify setting of reverse_bytes
[sox.git] / src / testall.sh
blobe73983778048c984e865ac95f2e552a860dc37f2
1 bindir="."
2 srcdir="."
3 effect=""
5 if [ -f ./sox.exe ] ; then
6 EXEEXT=".exe"
7 else
8 EXEEXXT=""
9 fi
11 # Allow user to override paths. Useful for testing an installed
12 # sox.
13 while [ $# -ne 0 ]; do
14 case "$1" in
15 --bindir=*)
16 bindir=`echo $1 | sed 's/.*=//'`
19 -i)
20 shift
21 bindir=$1
24 --srcdir=*)
25 srcdir=`echo $1 | sed 's/.*=//'`
28 -c)
29 shift
30 srcdir=$1
34 effect="$effect $1"
35 esac
36 shift
37 done
39 t() {
40 format=$1
41 shift
42 opts="$*"
44 echo "Format: $format Options: $opts"
45 ${bindir}/sox${EXEEXT} ${srcdir}/monkey.wav $opts /tmp/monkey.$format $effect
46 ${bindir}/sox${EXEEXT} $opts /tmp/monkey.$format /tmp/monkey1.wav $effect
48 t 8svx
49 t aiff
50 t aifc
51 t au
52 t avr -e unsigned-integer
53 t cdr
54 t cvs
55 t dat
56 t hcom -r 22050
57 t maud
58 t prc
59 t prc -e signed-integer
60 t sf
61 t smp
62 t sndt
63 t txw
64 t ub -r 8130
65 t vms
66 t voc
67 t vox -r 8130
68 t wav
69 t wve