# HG changeset patch # User michael # Date 1174516625 0 # Node ID 8155dd60b50b91d754f44bb197b797371fee5726 # Parent f5fa13dfd3c8592f04d17854f73d45f0dc70e39f code for testing the accuracy of the resampler diff -r f5fa13dfd3c8 -r 8155dd60b50b resample2.c --- a/resample2.c Wed Mar 21 22:02:52 2007 +0000 +++ b/resample2.c Wed Mar 21 22:37:05 2007 +0000 @@ -124,6 +124,42 @@ filter[ph * tap_count + i] = v; } } +#if 0 + { +#define LEN 1024 + int j,k; + double sine[LEN + tap_count]; + double filtered[LEN]; + double maxff=-2, minff=2, maxsf=-2, minsf=2; + for(i=0; i