projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The opus audio format handler.
[paraslash.git]
/
wma.h
diff --git
a/wma.h
b/wma.h
index c4703c25a5e9b7751b94e39c61e12c30053a7038..f0ba7f631703b35878606facde8f2980de621bce 100644
(file)
--- a/
wma.h
+++ b/
wma.h
@@
-1,3
+1,5
@@
+/** \file wma.h The asf_header structure and public wma function declarations. */
+
/**
* Information contained in an asf audio file header.
*
/**
* Information contained in an asf audio file header.
*
@@
-6,19
+8,26
@@
struct asf_header_info {
/** The size of the audio file header. */
int header_len;
struct asf_header_info {
/** The size of the audio file header. */
int header_len;
+ /** Offset of the audio stream info header. */
int audio_stream_info_start;
int audio_stream_info_start;
+ /** Number of channels. */
uint8_t channels;
uint8_t channels;
+ /** One of the 5 possible sample rates. */
uint16_t sample_rate;
uint16_t sample_rate;
+ /** Size of one data block. */
uint16_t block_align;
uint16_t block_align;
+ /** Bits per second. */
uint32_t bit_rate;
uint32_t bit_rate;
+ /** Further decoding information (ignored). */
uint32_t flags1;
uint32_t flags1;
+ /** Whether to use exp_vlc, bit reservoir, variable block len. */
uint16_t flags2;
};
/* wma_common.c */
uint16_t flags2;
};
/* wma_common.c */
-int wma_log2(unsigned int v);
+
__a_const
int wma_log2(unsigned int v);
const char *search_pattern(const char *pattern, int pattern_len,
const char *buf, int buf_size);
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 */
+int read_asf_header(c
onst c
har *buf, int loaded, struct asf_header_info *ahi);
+
#define WMA_FRAME_SKIP 31
#define WMA_FRAME_SKIP 31