X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fwav.c;h=a3cc371c168788c6622d081d78886e489f684152;hp=e12e73940bdc0a4eea6cf671802ee46691ff7973;hb=f7555c9f25b9008e1996e029f83ebeaaafd95321;hpb=ce6c31f0ee258d163dbc62553d2f0d9400a568b2 diff --git a/src/wav.c b/src/wav.c index e12e739..a3cc371 100644 --- a/src/wav.c +++ b/src/wav.c @@ -4,11 +4,24 @@ Part of the swftools package. Copyright (c) 2001 Matthias Kramm + + 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 #include +#include #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;