Paraslash Audio Streaming | |
About News Download Documentation Development |
Functions used by both the WMA afh and decoder. More...
#include <sys/types.h>
#include "para.h"
#include "error.h"
#include "afh.h"
#include "portable_io.h"
#include "imdct.h"
#include "wma.h"
Functions | |
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... | |
__a_const int | wma_log2 (unsigned int v) |
Compute the base-2 logarithm. More... | |
Functions used by both the WMA afh and decoder.
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.
__a_const int wma_log2 | ( | unsigned int | v | ) |
Compute the base-2 logarithm.
v | The value to compute the logarithm of. |