X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=wma.h;fp=wma.h;h=c4703c25a5e9b7751b94e39c61e12c30053a7038;hb=226ce82aaccff7e74a6fadd028743b731a3744d2;hp=0000000000000000000000000000000000000000;hpb=0e5cf478af1c9d0507085a73785f0988e81c791f;p=paraslash.git diff --git a/wma.h b/wma.h new file mode 100644 index 00000000..c4703c25 --- /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