1 /** \file wma.h The asf_header structure and public wma function declarations. */
4 * Information contained in an asf audio file header.
6 * Both para_filter and para_afh need to read the header.
8 struct asf_header_info {
9 /** The size of the audio file header. */
11 /** Offset of the audio stream info header. */
12 int audio_stream_info_start;
13 /** Number of channels. */
15 /** One of the 5 possible sample rates. */
17 /** Size of one data block. */
19 /** Bits per second. */
21 /** Further decoding information (ignored). */
23 /** Encodes exp_vlc, bit reservoir, vbl, number of block sizes. */
25 /** Whether exponents are coded with VLC codes. */
27 /** If false, a frame is equal to a superframe. */
28 bool use_bit_reservoir;
29 /** Whether blocks are of variable or of constant size. */
30 bool use_variable_block_len;
34 __a_const int wma_log2(unsigned int v);
35 const char *search_pattern(const char *pattern, int pattern_len,
36 const char *buf, int buf_size);
37 int read_asf_header(const char *buf, int loaded, struct asf_header_info *ahi);
39 #define WMA_FRAME_SKIP 31