moved extern declaration up to prevent compile-time errors.
[swftools.git] / src / wav.c
index e12e739..a3cc371 100644 (file)
--- a/src/wav.c
+++ b/src/wav.c
@@ -4,11 +4,24 @@
    Part of the swftools package.
    
    Copyright (c) 2001 Matthias Kramm <kramm@quiss.org>
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
 
-   This file is distributed under the GPL, see file COPYING for details */
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include "wav.h"
 
 struct WAVBlock {
@@ -25,10 +38,10 @@ int getWAVBlock(FILE*fi, struct WAVBlock*block)
     if(fread(b,1,4,fi)<4)
        return 0;
     block->size = b[0]|b[1]<<8|b[2]<<16|b[3]<<24;
-    printf("Chunk: [%c%c%c%c] (%d bytes)\n", 
+    /*printf("Chunk: [%c%c%c%c] (%d bytes)\n", 
            block->id[0],block->id[1],
            block->id[2],block->id[3],
-           block->size);
+           block->size);*/
     return 1;
 }
 
@@ -45,7 +58,7 @@ int readWAV(char* filename, struct WAV*wav)
     filesize = ftell(fi);
     fseek(fi, 0, SEEK_SET);
 
-    printf("Filesize: %d\n", filesize);
+    //printf("Filesize: %d\n", filesize);
 
     if(!getWAVBlock (fi, &block))
        return 0;