fix crashes reported by Debian Cylab Mayhem Team
[swftools.git] / lib / wav.h
blob8f253266e0fbd01d5df51940945f9ee29865547b
1 /* wav.h
2 Header file for wav.c
4 Part of the swftools package.
6 Copyright (c) 2001 Matthias Kramm <kramm@quiss.org>
8 This file is distributed under the GPL, see file COPYING for details */
10 struct WAV {
11 unsigned short tag;
12 unsigned short channels;
13 unsigned long sampsPerSec;
14 unsigned long bytesPerSec;
15 unsigned short align;
16 unsigned short bps;
18 unsigned char*data;
19 unsigned int size;
22 int wav_read(struct WAV*wav, const char* filename);
23 int wav_write(struct WAV*wav, const char*filename);
24 void wav_print(struct WAV*wav);
25 int wav_convert2mono(struct WAV*src, struct WAV*dest, int rate);