From 1736dd225b3b0d70ec0b979cee60e9b540ec7a2e Mon Sep 17 00:00:00 2001 From: Monty Date: Sun, 8 Aug 1999 00:50:23 +0000 Subject: [PATCH] Actually works now Monty 19990807 svn path=/trunk/vorbis/; revision=23 --- lib/dsptest.c | 89 +++-------------------------------------------------------- 1 file changed, 4 insertions(+), 85 deletions(-) diff --git a/lib/dsptest.c b/lib/dsptest.c index 33f6fae..0029628 100644 --- a/lib/dsptest.c +++ b/lib/dsptest.c @@ -51,8 +51,8 @@ int main(){ /* uninterleave samples */ for(i=0;ivi[vb.W],vb.pcm[i],vb.pcm[i],window); + mdct_forward(&vb.vd->vm[vb.W],vb.pcm[i],vb.pcm[i],window); /* synthesis */ for(i=0;ivi[vb.W],vb.pcm[i],vb.pcm[i],window); + mdct_backward(&vb.vd->vm[vb.W],vb.pcm[i],vb.pcm[i],window); /*{ @@ -153,84 +153,3 @@ int main(){ } return 0; } - - - - - #endif - - signed char buffer[BANDS*4+44]; - long count=0; - double max=0; - int imax=0; - - double left[BANDS+POINTS],right[BANDS+POINTS]; - - fread(buffer,1,44,stdin); - fwrite(buffer,1,44,stdout); - - - while(!feof(stdin)){ - long bread=fread(buffer,1,BANDS*4,stdin); - long i; - - /* uninterleave samples */ - - for(i=0;i32767 || abs(r)>32768){ - fprintf(stderr,"\nClipping!\n"); - exit(0); - } - buffer[i*4]=l&0xff; - buffer[i*4+1]=(l>>8)&0xff; - buffer[i*4+2]=r&0xff; - buffer[i*4+3]=(r>>8)&0xff; - } - - fwrite(buffer,1,bread,stdout); - } - return(0); -} - - - -- 2.7.4