audioformats.vorbis

Undocumented in source.

Members

Aliases

STBVorbisError
alias STBVorbisError = int

/////// PULLING INPUT API ///// ERROR CODES

YTYPE
alias YTYPE = int16
Undocumented in source.
codetype
alias codetype = float
Undocumented in source.
int16
alias int16 = short
Undocumented in source.
int32
alias int32 = int
Undocumented in source.
int8
alias int8 = byte
Undocumented in source.
uint16
alias uint16 = ushort
Undocumented in source.
uint8
alias uint8 = ubyte
Undocumented in source.
vorb
alias vorb = stb_vorbis
Undocumented in source.

Enums

VORBIS__no_error
anonymousenum VORBIS__no_error
Undocumented in source.
VORBIS_packet_id
anonymousenum VORBIS_packet_id
Undocumented in source.

Functions

CODEBOOK_ELEMENT_BASE
int CODEBOOK_ELEMENT_BASE(Codebook* c)
Undocumented in source. Be warned that the author may not have intended to support it.
CODEBOOK_ELEMENT_FAST
codetype CODEBOOK_ELEMENT_FAST(Codebook* c, int off)
Undocumented in source. Be warned that the author may not have intended to support it.
bit_reverse
uint bit_reverse(uint n)
Undocumented in source. Be warned that the author may not have intended to support it.
capture_pattern
int capture_pattern(vorb* f)
Undocumented in source. Be warned that the author may not have intended to support it.
codebook_decode_scalar
int codebook_decode_scalar(vorb* f, Codebook* c)
Undocumented in source. Be warned that the author may not have intended to support it.
codebook_decode_scalar_raw
int codebook_decode_scalar_raw(vorb* f, Codebook* c)
Undocumented in source. Be warned that the author may not have intended to support it.
codebook_decode_start
int codebook_decode_start(vorb* f, Codebook* c)
Undocumented in source. Be warned that the author may not have intended to support it.
compute_codewords
int compute_codewords(Codebook* c, uint8* len, int n, uint* values)
Undocumented in source. Be warned that the author may not have intended to support it.
crc32_init
void crc32_init()
Undocumented in source. Be warned that the author may not have intended to support it.
crc32_update
uint crc32_update(uint crc, uint8 byte_)
Undocumented in source. Be warned that the author may not have intended to support it.
decode_residue
void decode_residue(vorb* f, float** residue_buffers, int ch, int n, int rn, uint8* do_not_decode)
Undocumented in source. Be warned that the author may not have intended to support it.
do_floor
int do_floor(vorb* f, Mapping* map, int i, int n, float* target, YTYPE* finalY, uint8* step2_flag)
Undocumented in source. Be warned that the author may not have intended to support it.
draw_line
void draw_line(float* output, int x0, int y0, int x1, int y1, int n)
Undocumented in source. Be warned that the author may not have intended to support it.
error
int error(vorb* f, STBVorbisError e)
Undocumented in source. Be warned that the author may not have intended to support it.
float32_unpack
float float32_unpack(uint x)

//////////////////// LEAF SETUP FUNCTIONS //////////////////////////

flush_packet
void flush_packet(vorb* f)
Undocumented in source. Be warned that the author may not have intended to support it.
get32
uint get32(vorb* f)
Undocumented in source. Be warned that the author may not have intended to support it.
get32_packet
int get32_packet(vorb* f)
Undocumented in source. Be warned that the author may not have intended to support it.
get8
uint8 get8(vorb* z)

//////////////////// END LEAF SETUP FUNCTIONS //////////////////////////

get8_packet
int get8_packet(vorb* f)
Undocumented in source. Be warned that the author may not have intended to support it.
get8_packet_raw
int get8_packet_raw(vorb* f)
Undocumented in source. Be warned that the author may not have intended to support it.
get_seek_page_info
int get_seek_page_info(stb_vorbis* f, ProbedPage* z)
Undocumented in source. Be warned that the author may not have intended to support it.
getn
int getn(vorb* z, uint8* data, int n)
Undocumented in source. Be warned that the author may not have intended to support it.
ilog
int ilog(int32 n)
Undocumented in source. Be warned that the author may not have intended to support it.
include_in_sort
int include_in_sort(Codebook* c, uint8 len)
Undocumented in source. Be warned that the author may not have intended to support it.
init_blocksize
int init_blocksize(vorb* f, int b, int n)
Undocumented in source. Be warned that the author may not have intended to support it.
lookup1_values
int lookup1_values(int entries, int dim)
Undocumented in source. Be warned that the author may not have intended to support it.
make_block_array
void* make_block_array(void* mem, int count, int size)
Undocumented in source. Be warned that the author may not have intended to support it.
peek_decode_initial
int peek_decode_initial(vorb* f, int* p_left_start, int* p_left_end, int* p_right_start, int* p_right_end, int* mode)
Undocumented in source. Be warned that the author may not have intended to support it.
point_compare
int point_compare(void* p, void* q)
Undocumented in source. Be warned that the author may not have intended to support it.
predict_point
int predict_point(int x, int x0, int x1, int y0, int y1)
Undocumented in source. Be warned that the author may not have intended to support it.
residue_decode
int residue_decode(vorb* f, Codebook* book, float* target, int offset, int n, int rtype)
Undocumented in source. Be warned that the author may not have intended to support it.
set_file_offset
int set_file_offset(stb_vorbis* f, uint loc)
Undocumented in source. Be warned that the author may not have intended to support it.
setup_free
void setup_free(vorb* f, void* p)
Undocumented in source. Be warned that the author may not have intended to support it.
setup_malloc
void* setup_malloc(vorb* f, size_t sz)
Undocumented in source. Be warned that the author may not have intended to support it.
setup_temp_free
void setup_temp_free(vorb* f, void* p, ulong sz)
Undocumented in source. Be warned that the author may not have intended to support it.
setup_temp_free
void setup_temp_free(vorb* f, void* p, int sz)
Undocumented in source. Be warned that the author may not have intended to support it.
setup_temp_malloc
void* setup_temp_malloc(vorb* f, size_t sz)
Undocumented in source. Be warned that the author may not have intended to support it.
setup_temp_malloc
void* setup_temp_malloc(vorb* f, int sz)
Undocumented in source. Be warned that the author may not have intended to support it.
skip
void skip(vorb* z, int n)
Undocumented in source. Be warned that the author may not have intended to support it.
square
float square(float x)
Undocumented in source. Be warned that the author may not have intended to support it.
start_page_no_capturepattern
int start_page_no_capturepattern(vorb* f)
Undocumented in source. Be warned that the author may not have intended to support it.
stb_vorbis_close
void stb_vorbis_close(stb_vorbis* p)
Undocumented in source. Be warned that the author may not have intended to support it.
stb_vorbis_get_comment
stb_vorbis_comment stb_vorbis_get_comment(stb_vorbis* f)
Undocumented in source. Be warned that the author may not have intended to support it.
stb_vorbis_get_error
int stb_vorbis_get_error(stb_vorbis* f)
Undocumented in source. Be warned that the author may not have intended to support it.
stb_vorbis_get_file_offset
uint stb_vorbis_get_file_offset(stb_vorbis* f)
Undocumented in source. Be warned that the author may not have intended to support it.
stb_vorbis_get_frame_float
int stb_vorbis_get_frame_float(stb_vorbis* f, int* channels, float*** output)
Undocumented in source. Be warned that the author may not have intended to support it.
stb_vorbis_get_info
stb_vorbis_info stb_vorbis_get_info(stb_vorbis* f)
Undocumented in source. Be warned that the author may not have intended to support it.
stb_vorbis_get_sample_offset
int stb_vorbis_get_sample_offset(stb_vorbis* f)
Undocumented in source. Be warned that the author may not have intended to support it.
stb_vorbis_get_samples_float_interleaved
int stb_vorbis_get_samples_float_interleaved(stb_vorbis* f, int channels, float* buffer, int num_floats)
Undocumented in source. Be warned that the author may not have intended to support it.
stb_vorbis_open_audioformats
stb_vorbis* stb_vorbis_open_audioformats(IOCallbacks* io, void* userData, int* error, stb_vorbis_alloc* alloc)
Undocumented in source. Be warned that the author may not have intended to support it.
stb_vorbis_seek
int stb_vorbis_seek(stb_vorbis* f, uint sample_number)
Undocumented in source. Be warned that the author may not have intended to support it.
stb_vorbis_seek_frame
int stb_vorbis_seek_frame(stb_vorbis* f, uint sample_number)
Undocumented in source. Be warned that the author may not have intended to support it.
stb_vorbis_seek_start
int stb_vorbis_seek_start(stb_vorbis* f)
Undocumented in source. Be warned that the author may not have intended to support it.
stb_vorbis_stream_length_in_samples
uint stb_vorbis_stream_length_in_samples(stb_vorbis* f)
Undocumented in source. Be warned that the author may not have intended to support it.
temp_alloc
void* temp_alloc(stb_vorbis* f, size_t sz)
Undocumented in source. Be warned that the author may not have intended to support it.
temp_alloc_restore
void temp_alloc_restore(stb_vorbis* f, int p)
Undocumented in source. Be warned that the author may not have intended to support it.
temp_alloc_save
int temp_alloc_save(stb_vorbis* f)
Undocumented in source. Be warned that the author may not have intended to support it.
temp_block_array
void* temp_block_array(stb_vorbis* f, int count, int size)
Undocumented in source. Be warned that the author may not have intended to support it.
uint32_compare
int uint32_compare(void* p, void* q)
Undocumented in source. Be warned that the author may not have intended to support it.
vorbis_find_page
uint vorbis_find_page(stb_vorbis* f, uint* end, uint* last)
Undocumented in source. Be warned that the author may not have intended to support it.
vorbis_validate
int vorbis_validate(uint8* data)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

CRC32_POLY
enum CRC32_POLY;
Undocumented in source.
EOP
enum EOP;
Undocumented in source.
FAST_HUFFMAN_TABLE_MASK
enum FAST_HUFFMAN_TABLE_MASK;
Undocumented in source.
FAST_HUFFMAN_TABLE_SIZE
enum FAST_HUFFMAN_TABLE_SIZE;
Undocumented in source.
INVALID_BITS
enum INVALID_BITS;
Undocumented in source.
MAX_BLOCKSIZE
enum MAX_BLOCKSIZE;
Undocumented in source.
MAX_BLOCKSIZE_LOG
enum MAX_BLOCKSIZE_LOG;
Undocumented in source.
NO_CODE
enum NO_CODE;
Undocumented in source.
PAGEFLAG_continued_packet
enum PAGEFLAG_continued_packet;
Undocumented in source.
PAGEFLAG_first_page
enum PAGEFLAG_first_page;
Undocumented in source.
PAGEFLAG_last_page
enum PAGEFLAG_last_page;
Undocumented in source.
SAMPLE_unknown
enum SAMPLE_unknown;
Undocumented in source.
STB_VORBIS_FAST_HUFFMAN_LENGTH
enum STB_VORBIS_FAST_HUFFMAN_LENGTH;
Undocumented in source.
STB_VORBIS_MAX_CHANNELS
enum STB_VORBIS_MAX_CHANNELS;
Undocumented in source.

Static functions

add_entry
void add_entry(Codebook* c, uint huff_code, int symbol, int count, int len, uint* values)
Undocumented in source. Be warned that the author may not have intended to support it.
codebook_decode
int codebook_decode(vorb* f, Codebook* c, float* output, int len)
Undocumented in source. Be warned that the author may not have intended to support it.
codebook_decode_deinterleave_repeat
int codebook_decode_deinterleave_repeat(vorb* f, Codebook* c, float** outputs, int ch, int* c_inter_p, int* p_inter_p, int len, int total_decode)
Undocumented in source. Be warned that the author may not have intended to support it.
codebook_decode_step
int codebook_decode_step(vorb* f, Codebook* c, float* output, int len, int step)
Undocumented in source. Be warned that the author may not have intended to support it.
compute_accelerated_huffman
void compute_accelerated_huffman(Codebook* c)
Undocumented in source. Be warned that the author may not have intended to support it.
compute_bitreverse
void compute_bitreverse(int n, uint16* rev)
Undocumented in source. Be warned that the author may not have intended to support it.
compute_sorted_huffman
void compute_sorted_huffman(Codebook* c, uint8* lengths, uint* values)
Undocumented in source. Be warned that the author may not have intended to support it.
compute_twiddle_factors
void compute_twiddle_factors(int n, float* A, float* B, float* C)
Undocumented in source. Be warned that the author may not have intended to support it.
compute_window
void compute_window(int n, float* window)
Undocumented in source. Be warned that the author may not have intended to support it.
get_bits
uint get_bits(vorb* f, int n)
Undocumented in source. Be warned that the author may not have intended to support it.
get_window
float* get_window(vorb* f, int len)
Undocumented in source. Be warned that the author may not have intended to support it.
go_to_page_before
int go_to_page_before(stb_vorbis* f, uint limit_offset)
Undocumented in source. Be warned that the author may not have intended to support it.
imdct_step3_inner_r_loop
void imdct_step3_inner_r_loop(int lim, float* e, int d0, int k_off, float* A, int k1)
Undocumented in source. Be warned that the author may not have intended to support it.
imdct_step3_inner_s_loop
void imdct_step3_inner_s_loop(int n, float* e, int i_off, int k_off, float* A, int a_off, int k0)
Undocumented in source. Be warned that the author may not have intended to support it.
imdct_step3_inner_s_loop_ld654
void imdct_step3_inner_s_loop_ld654(int n, float* e, int i_off, float* A, int base_n)
Undocumented in source. Be warned that the author may not have intended to support it.
imdct_step3_iter0_loop
void imdct_step3_iter0_loop(int n, float* e, int i_off, int k_off, float* A)
Undocumented in source. Be warned that the author may not have intended to support it.
inverse_mdct
void inverse_mdct(float* buffer, int n, vorb* f, int blocktype)
Undocumented in source. Be warned that the author may not have intended to support it.
iter_54
void iter_54(float* z)
Undocumented in source. Be warned that the author may not have intended to support it.
maybe_start_packet
int maybe_start_packet(vorb* f)
Undocumented in source. Be warned that the author may not have intended to support it.
neighbors
void neighbors(uint16* x, int n, int* plow, int* phigh)
Undocumented in source. Be warned that the author may not have intended to support it.
next_segment
int next_segment(vorb* f)
Undocumented in source. Be warned that the author may not have intended to support it.
prep_huffman
void prep_huffman(vorb* f)
Undocumented in source. Be warned that the author may not have intended to support it.
seek_to_sample_coarse
int seek_to_sample_coarse(stb_vorbis* f, uint sample_number)
Undocumented in source. Be warned that the author may not have intended to support it.
start_decoder
int start_decoder(vorb* f)
Undocumented in source. Be warned that the author may not have intended to support it.
start_packet
int start_packet(vorb* f)
Undocumented in source. Be warned that the author may not have intended to support it.
start_page
int start_page(vorb* f)
Undocumented in source. Be warned that the author may not have intended to support it.
vorbis_alloc
stb_vorbis* vorbis_alloc(stb_vorbis* f)
Undocumented in source. Be warned that the author may not have intended to support it.
vorbis_decode_initial
int vorbis_decode_initial(vorb* f, int* p_left_start, int* p_left_end, int* p_right_start, int* p_right_end, int* mode)
Undocumented in source. Be warned that the author may not have intended to support it.
vorbis_decode_packet
int vorbis_decode_packet(vorb* f, int* len, int* p_left, int* p_right)
Undocumented in source. Be warned that the author may not have intended to support it.
vorbis_decode_packet_rest
int vorbis_decode_packet_rest(vorb* f, int* len, Mode* m, int left_start, int left_end, int right_start, int right_end, int* p_left)
Undocumented in source. Be warned that the author may not have intended to support it.
vorbis_deinit
void vorbis_deinit(stb_vorbis* p)
Undocumented in source. Be warned that the author may not have intended to support it.
vorbis_finish_frame
int vorbis_finish_frame(stb_vorbis* f, int len, int left, int right)
Undocumented in source. Be warned that the author may not have intended to support it.
vorbis_init
void vorbis_init(stb_vorbis* p, stb_vorbis_alloc* z)
Undocumented in source. Be warned that the author may not have intended to support it.
vorbis_pump_first_frame
int vorbis_pump_first_frame(stb_vorbis* f)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

crc_table
uint[256] crc_table;
Undocumented in source.
inverse_db_table
float[256] inverse_db_table;
Undocumented in source.
ogg_page_header
uint8[4] ogg_page_header;
Undocumented in source.

Structs

CRCscan
struct CRCscan
Undocumented in source.
Codebook
struct Codebook
Undocumented in source.
Floor0
struct Floor0
Undocumented in source.
Floor1
struct Floor1
Undocumented in source.
Mapping
struct Mapping
Undocumented in source.
MappingChannel
struct MappingChannel
Undocumented in source.
Mode
struct Mode
Undocumented in source.
ProbedPage
struct ProbedPage
Undocumented in source.
Residue
struct Residue
Undocumented in source.
stb_vorbis
struct stb_vorbis
Undocumented in source.
stb_vorbis_alloc
struct stb_vorbis_alloc

//////// THREAD SAFETY //////// MEMORY ALLOCATION

stb_vorbis_comment
struct stb_vorbis_comment
Undocumented in source.
stb_vorbis_info
struct stb_vorbis_info

//////// FUNCTIONS USEABLE WITH ALL INPUT MODES

stbv__floor_ordering
struct stbv__floor_ordering
Undocumented in source.

Unions

Floor
union Floor
Undocumented in source.

Variables

FALSE
enum int FALSE;
Undocumented in source.
TRUE
enum int TRUE;
Undocumented in source.

Meta