X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=lib%2Fwav.h;fp=lib%2Fwav.h;h=c671df86ced84a8e0e8aec9c9e661551d12e14d8;hb=96f6f939bc6a9cf64967842d5e13f949110b2d22;hp=0000000000000000000000000000000000000000;hpb=b648fccc8de027a38a32f9a0111dcf50fc02d935;p=swftools.git diff --git a/lib/wav.h b/lib/wav.h new file mode 100644 index 0000000..c671df8 --- /dev/null +++ b/lib/wav.h @@ -0,0 +1,26 @@ +/* wav.h + Header file for wav.c + + Part of the swftools package. + + Copyright (c) 2001 Matthias Kramm + + This file is distributed under the GPL, see file COPYING for details */ + +struct WAV { + unsigned short tag; + unsigned short channels; + unsigned long sampsPerSec; + unsigned long bytesPerSec; + unsigned short align; + unsigned short bps; + + unsigned char*data; + unsigned int size; +}; + +int readWAV(char* filename, struct WAV*wav); +int writeWAV(char*filename, struct WAV*wav); +void printWAVInfo(struct WAV*wav); +int convertWAV2mono(struct WAV*src, struct WAV*dest, int rate); +