]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - wma.h
First draft of the wma decoder.
[paraslash.git] / wma.h
diff --git a/wma.h b/wma.h
new file mode 100644 (file)
index 0000000..c4703c2
--- /dev/null
+++ b/wma.h
@@ -0,0 +1,24 @@
+/**
+ * Information contained in an asf audio file header.
+ *
+ * Both para_filter and para_afh need to read the header.
+ */
+struct asf_header_info {
+       /** The size of the audio file header. */
+       int header_len;
+       int audio_stream_info_start;
+       uint8_t channels;
+       uint16_t sample_rate;
+       uint16_t block_align;
+       uint32_t bit_rate;
+       uint32_t flags1;
+       uint16_t flags2;
+};
+
+/* wma_common.c */
+int wma_log2(unsigned int v);
+const char *search_pattern(const char *pattern, int pattern_len,
+               const char *buf, int buf_size);
+int read_asf_header(char *buf, int loaded, struct asf_header_info *ahi);
+#define M_PI           3.14159265358979323846  /* pi */
+#define WMA_FRAME_SKIP 31