shithub: sox

Download patch

ref: 57af571de49e9c641ead86b227b7b685dedf1ba3
parent: 8a4f90fa0ac35ff2e742c904b2572ed4475e58ae
author: cbagwell <cbagwell>
date: Sat Dec 4 17:22:06 EST 1999

Fixing a few problems in the test directory.  Still needs more work.

--- a/test/Makefile
+++ b/test/Makefile
@@ -7,8 +7,11 @@
 LDFLAGS:=-s
 LIBS:=-lm
 
-all: ding model lding lmodel
+all: ding model lding lmodel corr
 
+corr: corr.c
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $2 $<
+
 ding: ding.c
 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
 
@@ -22,5 +25,5 @@
 	$(CC) $(CFLAGS) -DLSAMPL $(LDFLAGS) -o $@ $< $(LIBS)
 
 clean:
-	rm -f ding lding model lmodel
+	rm -f ding lding model lmodel corr *~
 
--- a/test/README
+++ b/test/README
@@ -28,6 +28,19 @@
 ./ltest -l resample -qs 0.80 0 >B
 gnuplot plotAB
 
+The script gtest.pl is for testing sox's adpcm and gsm wav support.
+
+It accepts one of these options:
+    -t  Use 'toast' gsm for compress/decompress
+             -a  Use sox (MS) ADPCM
+	     -i  Use sox IMA ADPCM
+	     -g  Use sox wav-gsm6.10
+If using sox, you may also append an optional effect, eg:
+    ./wtest -g filter 0-3500 >A
+will apply a lowpass filter with 6dB corner at 3500 Hz before the compression phase.
+Then, as above, 'gnuplot plotA' will graph dB gain and dB error-level
+vs. freq for you.
+
 -------------------------------------------------------------------
 
 About ltest: