Paraslash Audio Streaming | |
About News Download Documentation Development |
The asf_header structure and public wma function declarations. More...
Data Structures | |
struct | asf_header_info |
Information contained in an asf audio file header. More... | |
Macros | |
#define | WMA_FRAME_SKIP 31 |
Functions | |
__a_const int | wma_log2 (unsigned int v) |
Compute the base-2 logarithm. More... | |
const char * | search_pattern (const char *pattern, int pattern_len, const char *buf, int buf_size) |
Find the first occurrence of the given pattern. More... | |
int | read_asf_header (const char *buf, int loaded, struct asf_header_info *ahi) |
Read an asf audio file header. More... | |
The asf_header structure and public wma function declarations.
#define WMA_FRAME_SKIP 31 |
__a_const int wma_log2 | ( | unsigned int | v | ) |
Compute the base-2 logarithm.
v | The value to compute the logarithm of. |
const char* search_pattern | ( | const char * | pattern, |
int | pattern_len, | ||
const char * | buf, | ||
int | buf_size | ||
) |
Find the first occurrence of the given pattern.
pattern | The pattern to search for. |
pattern_len | The length of the pattern in bytes. |
buf | The buffer to search for the pattern. |
buf_size | The number of bytes in buf. |
NULL
if the pattern was not found. References PARA_DEBUG_LOG, and PARA_NOTICE_LOG.
int read_asf_header | ( | const char * | buf, |
int | loaded, | ||
struct asf_header_info * | ahi | ||
) |
Read an asf audio file header.
buf | The input buffer. |
loaded | Number of bytes in buf. |
ahi | Result pointer. |
References asf_header_info::header_len.