initial revision
[swftools.git] / src / wav.h
diff --git a/src/wav.h b/src/wav.h
new file mode 100644 (file)
index 0000000..c671df8
--- /dev/null
+++ b/src/wav.h
@@ -0,0 +1,26 @@
+/* wav.h
+   Header file for wav.c
+
+   Part of the swftools package.
+   
+   Copyright (c) 2001 Matthias Kramm <kramm@quiss.org>
+
+   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);
+