zenilib
0.5.3.0
|
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <math.h>
#include "vorbis/codec.h"
#include "vorbis/vorbisfile.h"
#include "os.h"
#include "misc.h"
Go to the source code of this file.
Macros | |
#define | CHUNKSIZE 65536 /* greater-than-page-size granularity seeking */ |
#define | OV_EXCLUDE_STATIC_CALLBACKS |
#define | READSIZE 2048 /* a smaller read size is needed for low-rate streaming. */ |
#define CHUNKSIZE 65536 /* greater-than-page-size granularity seeking */ |
Definition at line 64 of file vorbisfile.c.
Referenced by _bisect_forward_serialno(), _fetch_headers(), _get_prev_page(), _get_prev_page_serial(), and ov_pcm_seek_page().
#define OV_EXCLUDE_STATIC_CALLBACKS |
Definition at line 27 of file vorbisfile.c.
Definition at line 65 of file vorbisfile.c.
Referenced by _get_data().
Definition at line 188 of file vorbisfile.c.
References _ogg_malloc, _ogg_realloc, and ogg_page_serialno().
Referenced by _fetch_headers().
|
static |
Definition at line 466 of file vorbisfile.c.
References _fetch_headers(), _get_next_page(), _get_prev_page_serial(), _initial_pcmoffset(), _lookup_page_serialno(), _lookup_serialno(), _ogg_free, _ogg_malloc, _ogg_realloc, _seek_helper(), CHUNKSIZE, OggVorbis_File::dataoffsets, OggVorbis_File::links, m, NULL, OggVorbis_File::offset, OggVorbis_File::offsets, OggVorbis_File::os, OV_EREAD, OggVorbis_File::pcmlengths, ret, ogg_stream_state::serialno, OggVorbis_File::serialnos, OggVorbis_File::vc, OggVorbis_File::vi, and vi.
Referenced by _open_seekable2().
|
static |
Definition at line 659 of file vorbisfile.c.
References OPENED, OggVorbis_File::ready_state, OggVorbis_File::vb, OggVorbis_File::vd, vorbis_block_clear(), and vorbis_dsp_clear().
Referenced by _fetch_and_process_packet(), ov_pcm_seek(), ov_pcm_seek_page(), and ov_raw_seek().
|
static |
Definition at line 676 of file vorbisfile.c.
References _decode_clear(), _fetch_headers(), _get_next_page(), _make_decode_ready(), OggVorbis_File::bittrack, ogg_packet::bytes, OggVorbis_File::current_link, OggVorbis_File::current_serialno, ogg_packet::e_o_s, ogg_packet::granulepos, ogg_page::header_len, i, INITSET, OggVorbis_File::links, NULL, ogg_page_bos(), ogg_page_serialno(), ogg_stream_packetout(), ogg_stream_pagein(), ogg_stream_reset_serialno(), OPENED, OggVorbis_File::os, OV_EFAULT, OV_EOF, OV_HOLE, OggVorbis_File::pcm_offset, OggVorbis_File::pcmlengths, OggVorbis_File::ready_state, ret, OggVorbis_File::samptrack, OggVorbis_File::seekable, ogg_stream_state::serialno, OggVorbis_File::serialnos, STREAMSET, OggVorbis_File::vb, OggVorbis_File::vc, OggVorbis_File::vd, OggVorbis_File::vi, vorbis_comment_clear(), vorbis_info_clear(), vorbis_synthesis(), vorbis_synthesis_blockin(), vorbis_synthesis_halfrate_p(), and vorbis_synthesis_pcmout().
Referenced by _ov_getlap(), _ov_initprime(), _ov_initset(), ov_pcm_seek(), ov_read_filter(), and ov_read_float().
|
static |
Definition at line 281 of file vorbisfile.c.
References _add_serialno(), _get_next_page(), _lookup_page_serialno(), _ogg_free, CHUNKSIZE, i, ogg_page_bos(), ogg_page_serialno(), ogg_stream_packetout(), ogg_stream_pagein(), ogg_stream_reset_serialno(), OPENED, OggVorbis_File::os, OV_EBADHEADER, OV_ENOTVORBIS, OV_EREAD, OggVorbis_File::ready_state, ret, ogg_stream_state::serialno, STREAMSET, vorbis_comment_clear(), vorbis_comment_init(), vorbis_info_clear(), vorbis_info_init(), vorbis_synthesis_headerin(), and vorbis_synthesis_idheader().
Referenced by _bisect_forward_serialno(), _fetch_and_process_packet(), and _ov_open1().
|
static |
Definition at line 873 of file vorbisfile.c.
References NULL.
|
static |
Definition at line 67 of file vorbisfile.c.
References OggVorbis_File::callbacks, OggVorbis_File::datasource, ogg_sync_buffer(), ogg_sync_wrote(), OggVorbis_File::oy, ov_callbacks::read_func, and READSIZE.
Referenced by _get_next_page().
|
static |
Definition at line 108 of file vorbisfile.c.
References _get_data(), OggVorbis_File::offset, ogg_sync_pageseek(), OV_EOF, OV_EREAD, OV_FALSE, OggVorbis_File::oy, and ret.
Referenced by _bisect_forward_serialno(), _fetch_and_process_packet(), _fetch_headers(), _get_prev_page(), _get_prev_page_serial(), _initial_pcmoffset(), ov_pcm_seek(), ov_pcm_seek_page(), and ov_raw_seek().
|
static |
Definition at line 146 of file vorbisfile.c.
References _get_next_page(), _seek_helper(), CHUNKSIZE, ogg_page::header_len, memset, OggVorbis_File::offset, OV_EFAULT, OV_EREAD, and ret.
Referenced by ov_pcm_seek_page().
|
static |
Definition at line 223 of file vorbisfile.c.
References _get_next_page(), _lookup_serialno(), _seek_helper(), CHUNKSIZE, OggVorbis_File::offset, ogg_page_granulepos(), ogg_page_serialno(), OV_EREAD, and ret.
Referenced by _bisect_forward_serialno(), and _open_seekable2().
|
static |
Definition at line 421 of file vorbisfile.c.
References _get_next_page(), ogg_page_bos(), ogg_page_granulepos(), ogg_page_serialno(), ogg_stream_packetout(), ogg_stream_pagein(), OggVorbis_File::os, ogg_stream_state::serialno, and vorbis_packet_blocksize().
Referenced by _bisect_forward_serialno(), and _open_seekable2().
Definition at line 212 of file vorbisfile.c.
References _lookup_serialno(), and ogg_page_serialno().
Referenced by _bisect_forward_serialno(), and _fetch_headers().
Definition at line 202 of file vorbisfile.c.
Referenced by _bisect_forward_serialno(), _get_prev_page_serial(), and _lookup_page_serialno().
|
static |
Definition at line 599 of file vorbisfile.c.
References OggVorbis_File::bittrack, OggVorbis_File::current_link, INITSET, OV_EBADLINK, OV_EFAULT, OggVorbis_File::ready_state, OggVorbis_File::samptrack, OggVorbis_File::seekable, STREAMSET, OggVorbis_File::vb, OggVorbis_File::vd, OggVorbis_File::vi, vorbis_block_init(), and vorbis_synthesis_init().
Referenced by _fetch_and_process_packet(), and ov_pcm_seek().
|
static |
Definition at line 616 of file vorbisfile.c.
References _bisect_forward_serialno(), _get_prev_page_serial(), _initial_pcmoffset(), OggVorbis_File::callbacks, OggVorbis_File::dataoffsets, OggVorbis_File::datasource, OggVorbis_File::end, OggVorbis_File::offset, OggVorbis_File::offsets, OggVorbis_File::os, OV_EINVAL, OV_EREAD, ov_raw_seek(), OggVorbis_File::pcmlengths, SEEK_END, ov_callbacks::seek_func, ogg_stream_state::serialno, OggVorbis_File::serialnos, ov_callbacks::tell_func, and OggVorbis_File::vi.
Referenced by _ov_open2().
|
static |
Definition at line 2221 of file vorbisfile.c.
References _ov_getlap(), _ov_initprime(), _ov_initset(), _ov_splice(), vorbis_info::channels, i, OPENED, OV_EINVAL, ov_halfrate_p(), ov_info(), OggVorbis_File::ready_state, ret, OggVorbis_File::vd, vi, vorbis_info_blocksize(), vorbis_synthesis_lapout(), and vorbis_window().
Referenced by ov_pcm_seek_lap(), ov_pcm_seek_page_lap(), and ov_raw_seek_lap().
|
static |
Definition at line 2282 of file vorbisfile.c.
References _ov_getlap(), _ov_initprime(), _ov_initset(), _ov_splice(), vorbis_info::channels, i, OPENED, OV_EINVAL, ov_halfrate_p(), ov_info(), OggVorbis_File::ready_state, ret, OggVorbis_File::vd, vi, vorbis_info_blocksize(), vorbis_synthesis_lapout(), and vorbis_window().
Referenced by ov_time_seek_lap(), and ov_time_seek_page_lap().
|
static |
Definition at line 2128 of file vorbisfile.c.
References _fetch_and_process_packet(), vorbis_info::channels, i, memcpy, memset, NULL, OV_EOF, ret, OggVorbis_File::vd, vorbis_synthesis_lapout(), vorbis_synthesis_pcmout(), and vorbis_synthesis_read().
Referenced by _ov_64_seek_lap(), _ov_d_seek_lap(), and ov_crosslap().
|
static |
Definition at line 2110 of file vorbisfile.c.
References _fetch_and_process_packet(), INITSET, NULL, OV_HOLE, OggVorbis_File::ready_state, ret, OggVorbis_File::vd, and vorbis_synthesis_pcmout().
Referenced by _ov_64_seek_lap(), _ov_d_seek_lap(), and ov_crosslap().
|
static |
Definition at line 2095 of file vorbisfile.c.
References _fetch_and_process_packet(), INITSET, NULL, OV_HOLE, OggVorbis_File::ready_state, and ret.
Referenced by _ov_64_seek_lap(), _ov_d_seek_lap(), and ov_crosslap().
|
static |
Definition at line 878 of file vorbisfile.c.
References _fetch_headers(), _ogg_calloc, _ogg_free, OggVorbis_File::callbacks, OggVorbis_File::current_serialno, OggVorbis_File::dataoffsets, OggVorbis_File::datasource, OggVorbis_File::links, memcpy, memset, NULL, OggVorbis_File::offset, OggVorbis_File::offsets, ogg_stream_init(), ogg_sync_buffer(), ogg_sync_init(), ogg_sync_wrote(), OggVorbis_File::os, ov_clear(), OggVorbis_File::oy, PARTOPEN, OggVorbis_File::ready_state, ret, SEEK_CUR, ov_callbacks::seek_func, OggVorbis_File::seekable, ogg_stream_state::serialno, OggVorbis_File::serialnos, OggVorbis_File::vc, and OggVorbis_File::vi.
Referenced by ov_open_callbacks(), and ov_test_callbacks().
|
static |
Definition at line 937 of file vorbisfile.c.
References _open_seekable2(), OggVorbis_File::datasource, NULL, OPENED, ov_clear(), OV_EINVAL, PARTOPEN, OggVorbis_File::ready_state, ret, OggVorbis_File::seekable, and STREAMSET.
Referenced by ov_open_callbacks(), and ov_test_open().
|
static |
Definition at line 2059 of file vorbisfile.c.
Referenced by _ov_64_seek_lap(), _ov_d_seek_lap(), and ov_crosslap().
|
static |
Definition at line 81 of file vorbisfile.c.
References OggVorbis_File::callbacks, OggVorbis_File::datasource, OggVorbis_File::offset, ogg_sync_reset(), OV_EFAULT, OV_EREAD, OggVorbis_File::oy, ov_callbacks::seek_func, and SEEK_SET.
Referenced by _bisect_forward_serialno(), _get_prev_page(), _get_prev_page_serial(), ov_pcm_seek_page(), and ov_raw_seek().
|
static |
Definition at line 1826 of file vorbisfile.c.
Referenced by ov_read_filter().
long ov_bitrate | ( | OggVorbis_File * | vf, |
int | i | ||
) |
Definition at line 1101 of file vorbisfile.c.
References vorbis_info::bitrate_lower, vorbis_info::bitrate_nominal, vorbis_info::bitrate_upper, OggVorbis_File::dataoffsets, i, OggVorbis_File::links, OggVorbis_File::offsets, OPENED, ov_bitrate(), OV_EINVAL, OV_FALSE, ov_time_total(), OggVorbis_File::ready_state, OggVorbis_File::seekable, and OggVorbis_File::vi.
Referenced by ov_bitrate().
long ov_bitrate_instant | ( | OggVorbis_File * | vf | ) |
Definition at line 1143 of file vorbisfile.c.
References OggVorbis_File::bittrack, OggVorbis_File::current_link, OPENED, OV_EINVAL, OV_FALSE, vorbis_info::rate, OggVorbis_File::ready_state, ret, OggVorbis_File::samptrack, OggVorbis_File::seekable, and OggVorbis_File::vi.
int ov_clear | ( | OggVorbis_File * | vf | ) |
Definition at line 955 of file vorbisfile.c.
References _ogg_free, OggVorbis_File::callbacks, ov_callbacks::close_func, OggVorbis_File::dataoffsets, OggVorbis_File::datasource, i, OggVorbis_File::links, memset, OggVorbis_File::offsets, ogg_stream_clear(), ogg_sync_clear(), OggVorbis_File::os, OggVorbis_File::oy, OggVorbis_File::pcmlengths, OggVorbis_File::serialnos, OggVorbis_File::vb, OggVorbis_File::vc, OggVorbis_File::vd, OggVorbis_File::vi, vorbis_block_clear(), vorbis_comment_clear(), vorbis_dsp_clear(), and vorbis_info_clear().
Referenced by _ov_open1(), _ov_open2(), and Zeni::Sound_Buffer::load_ogg_vorbis().
vorbis_comment* ov_comment | ( | OggVorbis_File * | vf, |
int | link | ||
) |
Definition at line 1809 of file vorbisfile.c.
References OggVorbis_File::current_link, OggVorbis_File::links, NULL, OggVorbis_File::ready_state, OggVorbis_File::seekable, STREAMSET, and OggVorbis_File::vc.
Referenced by Zeni::Sound_Stream_AL::Sound_Stream_AL().
int ov_crosslap | ( | OggVorbis_File * | vf1, |
OggVorbis_File * | vf2 | ||
) |
Definition at line 2168 of file vorbisfile.c.
References _ov_getlap(), _ov_initprime(), _ov_initset(), _ov_splice(), vorbis_info::channels, i, OPENED, OV_EINVAL, ov_halfrate_p(), ov_info(), OggVorbis_File::ready_state, ret, OggVorbis_File::vd, vorbis_info_blocksize(), vorbis_synthesis_lapout(), and vorbis_window().
int ov_fopen | ( | const char * | path, |
OggVorbis_File * | vf | ||
) |
Definition at line 1011 of file vorbisfile.c.
References NULL, ov_open(), and ret.
Referenced by Zeni::Sound_Buffer::load_ogg_vorbis(), and Zeni::Sound_Stream_AL::Sound_Stream_AL().
int ov_halfrate | ( | OggVorbis_File * | vf, |
int | flag | ||
) |
Definition at line 1025 of file vorbisfile.c.
References i, OggVorbis_File::links, NULL, OV_EINVAL, ov_halfrate(), ov_pcm_seek(), OggVorbis_File::pcm_offset, OggVorbis_File::ready_state, STREAMSET, OggVorbis_File::vb, OggVorbis_File::vd, OggVorbis_File::vi, vorbis_block_clear(), vorbis_dsp_clear(), and vorbis_synthesis_halfrate().
Referenced by ov_halfrate().
int ov_halfrate_p | ( | OggVorbis_File * | vf | ) |
Definition at line 1050 of file vorbisfile.c.
References NULL, OV_EINVAL, OggVorbis_File::vi, and vorbis_synthesis_halfrate_p().
Referenced by _ov_64_seek_lap(), _ov_d_seek_lap(), and ov_crosslap().
vorbis_info* ov_info | ( | OggVorbis_File * | vf, |
int | link | ||
) |
Definition at line 1791 of file vorbisfile.c.
References OggVorbis_File::current_link, OggVorbis_File::links, NULL, OggVorbis_File::ready_state, OggVorbis_File::seekable, STREAMSET, and OggVorbis_File::vi.
Referenced by _ov_64_seek_lap(), _ov_d_seek_lap(), Zeni::Sound_Buffer::load_ogg_vorbis(), ov_crosslap(), ov_read_filter(), and Zeni::Sound_Stream_AL::Sound_Stream_AL().
int ov_open | ( | FILE * | f, |
OggVorbis_File * | vf, | ||
const char * | initial, | ||
long | ibytes | ||
) |
Definition at line 1000 of file vorbisfile.c.
References _fseek64_wrap(), int, and ov_open_callbacks().
Referenced by ov_fopen().
int ov_open_callbacks | ( | void * | f, |
OggVorbis_File * | vf, | ||
const char * | initial, | ||
long | ibytes, | ||
ov_callbacks | callbacks | ||
) |
Definition at line 993 of file vorbisfile.c.
References _ov_open1(), _ov_open2(), and ret.
Referenced by ov_open().
int ov_pcm_seek | ( | OggVorbis_File * | vf, |
ogg_int64_t | pos | ||
) |
Definition at line 1590 of file vorbisfile.c.
References _decode_clear(), _fetch_and_process_packet(), _get_next_page(), _make_decode_ready(), OggVorbis_File::bittrack, OggVorbis_File::current_link, OggVorbis_File::current_serialno, ogg_packet::granulepos, i, OggVorbis_File::links, NULL, ogg_page_bos(), ogg_page_serialno(), ogg_stream_packetout(), ogg_stream_packetpeek(), ogg_stream_pagein(), ogg_stream_reset_serialno(), OggVorbis_File::os, OV_HOLE, ov_pcm_seek_page(), ov_pcm_total(), OggVorbis_File::pcm_offset, OggVorbis_File::pcmlengths, OggVorbis_File::ready_state, ret, OggVorbis_File::samptrack, OggVorbis_File::serialnos, STREAMSET, OggVorbis_File::vb, OggVorbis_File::vd, OggVorbis_File::vi, vorbis_info_blocksize(), vorbis_packet_blocksize(), vorbis_synthesis_blockin(), vorbis_synthesis_halfrate_p(), vorbis_synthesis_pcmout(), vorbis_synthesis_read(), and vorbis_synthesis_trackonly().
Referenced by ov_halfrate(), ov_pcm_seek_lap(), and ov_time_seek().
int ov_pcm_seek_lap | ( | OggVorbis_File * | vf, |
ogg_int64_t | pos | ||
) |
Definition at line 2274 of file vorbisfile.c.
References _ov_64_seek_lap(), and ov_pcm_seek().
int ov_pcm_seek_page | ( | OggVorbis_File * | vf, |
ogg_int64_t | pos | ||
) |
Definition at line 1404 of file vorbisfile.c.
References _decode_clear(), _get_next_page(), _get_prev_page(), _seek_helper(), OggVorbis_File::bittrack, CHUNKSIZE, OggVorbis_File::current_link, OggVorbis_File::current_serialno, ogg_packet::granulepos, OggVorbis_File::links, NULL, OggVorbis_File::offset, OggVorbis_File::offsets, ogg_page_continued(), ogg_page_granulepos(), ogg_page_serialno(), ogg_stream_packetout(), ogg_stream_packetpeek(), ogg_stream_pagein(), ogg_stream_reset_serialno(), OPENED, OggVorbis_File::os, OV_EBADPACKET, OV_EFAULT, OV_EINVAL, OV_ENOSEEK, OV_EREAD, ov_pcm_total(), ov_raw_seek(), OggVorbis_File::pcm_offset, OggVorbis_File::pcmlengths, OggVorbis_File::ready_state, OggVorbis_File::samptrack, OggVorbis_File::seekable, OggVorbis_File::serialnos, STREAMSET, OggVorbis_File::vd, and vorbis_synthesis_restart().
Referenced by ov_pcm_seek(), ov_pcm_seek_page_lap(), and ov_time_seek_page().
int ov_pcm_seek_page_lap | ( | OggVorbis_File * | vf, |
ogg_int64_t | pos | ||
) |
Definition at line 2278 of file vorbisfile.c.
References _ov_64_seek_lap(), and ov_pcm_seek_page().
ogg_int64_t ov_pcm_tell | ( | OggVorbis_File * | vf | ) |
Definition at line 1756 of file vorbisfile.c.
References OPENED, OV_EINVAL, OggVorbis_File::pcm_offset, and OggVorbis_File::ready_state.
ogg_int64_t ov_pcm_total | ( | OggVorbis_File * | vf, |
int | i | ||
) |
Definition at line 1189 of file vorbisfile.c.
References i, OggVorbis_File::links, OPENED, OV_EINVAL, ov_pcm_total(), OggVorbis_File::pcmlengths, OggVorbis_File::ready_state, and OggVorbis_File::seekable.
Referenced by Zeni::Sound_Buffer::load_ogg_vorbis(), ov_pcm_seek(), ov_pcm_seek_page(), ov_pcm_total(), ov_raw_seek(), and ov_time_tell().
int ov_raw_seek | ( | OggVorbis_File * | vf, |
ogg_int64_t | pos | ||
) |
Definition at line 1229 of file vorbisfile.c.
References _decode_clear(), _get_next_page(), _seek_helper(), OggVorbis_File::bittrack, vorbis_info::codec_setup, OggVorbis_File::current_link, OggVorbis_File::current_serialno, OggVorbis_File::dataoffsets, OggVorbis_File::end, ogg_packet::granulepos, i, OggVorbis_File::links, NULL, OggVorbis_File::offsets, ogg_page_bos(), ogg_page_eos(), ogg_page_serialno(), ogg_stream_clear(), ogg_stream_init(), ogg_stream_packetout(), ogg_stream_pagein(), ogg_stream_reset(), ogg_stream_reset_serialno(), OPENED, OggVorbis_File::os, OV_EBADLINK, OV_EINVAL, OV_ENOSEEK, ov_pcm_total(), OggVorbis_File::pcm_offset, OggVorbis_File::pcmlengths, OggVorbis_File::ready_state, ret, OggVorbis_File::samptrack, OggVorbis_File::seekable, OggVorbis_File::serialnos, STREAMSET, OggVorbis_File::vd, OggVorbis_File::vi, vorbis_packet_blocksize(), and vorbis_synthesis_restart().
Referenced by _open_seekable2(), ov_pcm_seek_page(), ov_raw_seek_lap(), and Zeni::Sound_Stream_AL::play().
int ov_raw_seek_lap | ( | OggVorbis_File * | vf, |
ogg_int64_t | pos | ||
) |
Definition at line 2270 of file vorbisfile.c.
References _ov_64_seek_lap(), and ov_raw_seek().
ogg_int64_t ov_raw_tell | ( | OggVorbis_File * | vf | ) |
Definition at line 1750 of file vorbisfile.c.
References OggVorbis_File::offset, OPENED, OV_EINVAL, and OggVorbis_File::ready_state.
ogg_int64_t ov_raw_total | ( | OggVorbis_File * | vf, |
int | i | ||
) |
Definition at line 1170 of file vorbisfile.c.
References i, OggVorbis_File::links, OggVorbis_File::offsets, OPENED, OV_EINVAL, ov_raw_total(), OggVorbis_File::ready_state, and OggVorbis_File::seekable.
Referenced by ov_raw_total().
long ov_read | ( | OggVorbis_File * | vf, |
char * | buffer, | ||
int | length, | ||
int | bigendianp, | ||
int | word, | ||
int | sgned, | ||
int * | bitstream | ||
) |
Definition at line 2007 of file vorbisfile.c.
References NULL, and ov_read_filter().
Referenced by Zeni::Sound_Buffer::load_ogg_vorbis().
long ov_read_filter | ( | OggVorbis_File * | vf, |
char * | buffer, | ||
int | length, | ||
int | bigendianp, | ||
int | word, | ||
int | sgned, | ||
int * | bitstream, | ||
void(*)(float **pcm, long channels, long samples, void *filter_param) | filter, | ||
void * | filter_param | ||
) |
Definition at line 1869 of file vorbisfile.c.
References _fetch_and_process_packet(), vorbis_info::channels, OggVorbis_File::current_link, host_is_big_endian(), i, INITSET, j, NULL, OPENED, OV_EINVAL, OV_EOF, ov_info(), OggVorbis_File::pcm_offset, OggVorbis_File::ready_state, ret, OggVorbis_File::vd, OggVorbis_File::vi, vorbis_fpu_restore, vorbis_fpu_setround, vorbis_ftoi(), vorbis_synthesis_halfrate_p(), vorbis_synthesis_pcmout(), and vorbis_synthesis_read().
Referenced by ov_read().
long ov_read_float | ( | OggVorbis_File * | vf, |
float *** | pcm_channels, | ||
int | length, | ||
int * | bitstream | ||
) |
Definition at line 2026 of file vorbisfile.c.
References _fetch_and_process_packet(), OggVorbis_File::current_link, INITSET, NULL, OPENED, OV_EINVAL, OV_EOF, OggVorbis_File::pcm_offset, OggVorbis_File::ready_state, ret, OggVorbis_File::vd, OggVorbis_File::vi, vorbis_synthesis_halfrate_p(), vorbis_synthesis_pcmout(), and vorbis_synthesis_read().
long ov_seekable | ( | OggVorbis_File * | vf | ) |
Definition at line 1088 of file vorbisfile.c.
References OggVorbis_File::seekable.
long ov_serialnumber | ( | OggVorbis_File * | vf, |
int | i | ||
) |
Definition at line 1155 of file vorbisfile.c.
References OggVorbis_File::current_serialno, OggVorbis_File::links, ov_serialnumber(), OggVorbis_File::seekable, and OggVorbis_File::serialnos.
Referenced by ov_serialnumber().
long ov_streams | ( | OggVorbis_File * | vf | ) |
Definition at line 1083 of file vorbisfile.c.
References OggVorbis_File::links.
int ov_test | ( | FILE * | f, |
OggVorbis_File * | vf, | ||
const char * | initial, | ||
long | ibytes | ||
) |
Definition at line 1066 of file vorbisfile.c.
References _fseek64_wrap(), int, and ov_test_callbacks().
int ov_test_callbacks | ( | void * | f, |
OggVorbis_File * | vf, | ||
const char * | initial, | ||
long | ibytes, | ||
ov_callbacks | callbacks | ||
) |
int ov_test_open | ( | OggVorbis_File * | vf | ) |
Definition at line 1077 of file vorbisfile.c.
References _ov_open2(), OV_EINVAL, PARTOPEN, and OggVorbis_File::ready_state.
int ov_time_seek | ( | OggVorbis_File * | vf, |
double | seconds | ||
) |
Definition at line 1690 of file vorbisfile.c.
References OggVorbis_File::links, OPENED, OV_EINVAL, OV_ENOSEEK, ov_pcm_seek(), ov_time_total(), OggVorbis_File::pcmlengths, vorbis_info::rate, OggVorbis_File::ready_state, OggVorbis_File::seekable, and OggVorbis_File::vi.
Referenced by ov_time_seek_lap(), Zeni::Sound_Stream_AL::set_time(), and Zeni::Sound_Stream_AL::Sound_Stream_AL().
int ov_time_seek_lap | ( | OggVorbis_File * | vf, |
double | pos | ||
) |
Definition at line 2331 of file vorbisfile.c.
References _ov_d_seek_lap(), and ov_time_seek().
int ov_time_seek_page | ( | OggVorbis_File * | vf, |
double | seconds | ||
) |
Definition at line 1720 of file vorbisfile.c.
References OggVorbis_File::links, OPENED, OV_EINVAL, OV_ENOSEEK, ov_pcm_seek_page(), ov_time_total(), OggVorbis_File::pcmlengths, vorbis_info::rate, OggVorbis_File::ready_state, OggVorbis_File::seekable, and OggVorbis_File::vi.
Referenced by ov_time_seek_page_lap().
int ov_time_seek_page_lap | ( | OggVorbis_File * | vf, |
double | pos | ||
) |
Definition at line 2335 of file vorbisfile.c.
References _ov_d_seek_lap(), and ov_time_seek_page().
double ov_time_tell | ( | OggVorbis_File * | vf | ) |
Definition at line 1762 of file vorbisfile.c.
References OggVorbis_File::links, OPENED, OV_EINVAL, ov_pcm_total(), ov_time_total(), OggVorbis_File::pcm_offset, OggVorbis_File::pcmlengths, vorbis_info::rate, OggVorbis_File::ready_state, OggVorbis_File::seekable, and OggVorbis_File::vi.
Referenced by Zeni::Sound_Stream_AL::get_time().
double ov_time_total | ( | OggVorbis_File * | vf, |
int | i | ||
) |
Definition at line 1208 of file vorbisfile.c.
References i, OggVorbis_File::links, OPENED, OV_EINVAL, ov_time_total(), OggVorbis_File::pcmlengths, vorbis_info::rate, OggVorbis_File::ready_state, OggVorbis_File::seekable, and OggVorbis_File::vi.
Referenced by Zeni::Sound_Stream_AL::get_duration(), ov_bitrate(), ov_time_seek(), ov_time_seek_page(), ov_time_tell(), and ov_time_total().
float* vorbis_window | ( | vorbis_dsp_state * | v, |
int | W | ||
) |
Definition at line 1038 of file block.c.
References _vorbis_window_get(), vorbis_dsp_state::backend_state, vorbis_info::codec_setup, codec_setup_info::halfrate_flag, NULL, vorbis_dsp_state::vi, vi, and private_state::window.
Referenced by _ov_64_seek_lap(), _ov_d_seek_lap(), and ov_crosslap().