*** empty log message ***
authorjmvalin <jmvalin@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Thu, 2 May 2002 20:55:26 +0000 (20:55 +0000)
committerjmvalin <jmvalin@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Thu, 2 May 2002 20:55:26 +0000 (20:55 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@3270 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/testdec.c [deleted file]

diff --git a/libspeex/testdec.c b/libspeex/testdec.c
deleted file mode 100644 (file)
index ffe9f09..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-#include "speex.h"
-#include <stdio.h>
-#include <stdlib.h>
-
-#define FRAME_SIZE 160
-#include <math.h>
-int main(int argc, char **argv)
-{
-   char *outFile, *bitsFile;
-   FILE *fout, *fbits=NULL;
-   short out[FRAME_SIZE];
-   float output[FRAME_SIZE];
-   char cbits[200];
-   int i;
-   DecState dec;
-   FrameBits bits;
-
-   decoder_init(&dec, &mp_nb_mode);
-   if (argc != 3)
-   {
-      fprintf (stderr, "Usage: encode [bits file] [out file]\nargc = %d", argc);
-      exit(1);
-   }
-   bitsFile = argv[1];
-   fbits = fopen(bitsFile, "r");
-   outFile = argv[2];
-   fout = fopen(outFile, "w");
-   frame_bits_init(&bits);
-   while (!feof(fbits))
-   {
-      fread(cbits, 1, 37, fbits);
-      frame_bits_reset(&bits);
-      frame_bits_init_from(&bits, cbits, 37);
-      decode(&dec, &bits, output);
-      for (i=0;i<FRAME_SIZE;i++)
-      {
-         if (output[i]>32000)
-            output[i]=32000;
-         else if (output[i]<-32000)
-            output[i]=-32000;
-      }
-      for (i=0;i<FRAME_SIZE;i++)
-         out[i]=output[i];
-      fwrite(out, sizeof(short), FRAME_SIZE, fout);
-   }
-   decoder_destroy(&dec);
-   return 1;
-}