fixed drawlink() ruby callback
[swftools.git] / lib / wav.h
1 /* wav.h
2    Header file for wav.c
3
4    Part of the swftools package.
5    
6    Copyright (c) 2001 Matthias Kramm <kramm@quiss.org>
7
8    This file is distributed under the GPL, see file COPYING for details */
9
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;
17     
18     unsigned char*data;
19     unsigned int size;
20 };
21
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);
26