39 size_t (*read_func) (
void *ptr,
size_t size,
size_t nmemb,
void *datasource);
40 int (*seek_func) (
void *datasource, ogg_int64_t offset,
int whence);
41 int (*close_func) (
void *datasource);
42 long (*tell_func) (
void *datasource);
45#ifndef OV_EXCLUDE_STATIC_CALLBACKS
52static int _ov_header_fseek_wrap(FILE *f,ogg_int64_t off,
int whence){
53 if(f==NULL)
return(-1);
56 return fseeko64(f,off,whence);
58 return _fseeki64(f,off,whence);
60 return fseek(f,off,whence);
75 (size_t (*)(
void *, size_t, size_t,
void *)) fread,
76 (int (*)(
void *, ogg_int64_t, int)) _ov_header_fseek_wrap,
77 (
int (*)(
void *)) fclose,
78 (
long (*)(
void *)) ftell
82 (size_t (*)(
void *, size_t, size_t,
void *)) fread,
83 (
int (*)(
void *, ogg_int64_t,
int)) _ov_header_fseek_wrap,
84 (
int (*)(
void *)) NULL,
85 (
long (*)(
void *)) ftell
89 (size_t (*)(
void *, size_t, size_t,
void *)) fread,
90 (int (*)(
void *, ogg_int64_t, int)) NULL,
91 (
int (*)(
void *)) fclose,
92 (
long (*)(
void *)) NULL
96 (size_t (*)(
void *, size_t, size_t,
void *)) fread,
97 (
int (*)(
void *, ogg_int64_t,
int)) NULL,
98 (
int (*)(
void *)) NULL,
99 (
long (*)(
void *)) NULL
152 const char *initial,
long ibytes,
ov_callbacks callbacks);
156 const char *initial,
long ibytes,
ov_callbacks callbacks);
191 int bigendianp,
int word,
int sgned,
int *bitstream,
192 void (*filter)(
float **pcm,
long channels,
long samples,
void *filter_param),
void *filter_param);
194 int bigendianp,
int word,
int sgned,
int *bitstream);
Definition vorbisfile.h:110
ogg_int64_t pcm_offset
Definition vorbisfile.h:130
int seekable
Definition vorbisfile.h:112
vorbis_block vb
Definition vorbisfile.h:141
ogg_int64_t offset
Definition vorbisfile.h:113
double samptrack
Definition vorbisfile.h:136
vorbis_comment * vc
Definition vorbisfile.h:127
void * datasource
Definition vorbisfile.h:111
ogg_stream_state os
Definition vorbisfile.h:138
ogg_int64_t * pcmlengths
Definition vorbisfile.h:123
int current_link
Definition vorbisfile.h:133
vorbis_info * vi
Definition vorbisfile.h:126
double bittrack
Definition vorbisfile.h:135
long * serialnos
Definition vorbisfile.h:122
vorbis_dsp_state vd
Definition vorbisfile.h:140
int ready_state
Definition vorbisfile.h:131
int links
Definition vorbisfile.h:119
long current_serialno
Definition vorbisfile.h:132
ogg_sync_state oy
Definition vorbisfile.h:115
ogg_int64_t end
Definition vorbisfile.h:114
ogg_int64_t * dataoffsets
Definition vorbisfile.h:121
ogg_int64_t * offsets
Definition vorbisfile.h:120
ov_callbacks callbacks
Definition vorbisfile.h:143
Definition vorbisfile.h:38
vorbis_info * ov_info(OggVorbis_File *vf, int link)
int ov_pcm_seek_page(OggVorbis_File *vf, ogg_int64_t pos)
ogg_int64_t ov_raw_total(OggVorbis_File *vf, int i)
struct OggVorbis_File OggVorbis_File
int ov_pcm_seek(OggVorbis_File *vf, ogg_int64_t pos)
int ov_time_seek_page(OggVorbis_File *vf, double pos)
double ov_time_tell(OggVorbis_File *vf)
long ov_serialnumber(OggVorbis_File *vf, int i)
long ov_read(OggVorbis_File *vf, char *buffer, int length, int bigendianp, int word, int sgned, int *bitstream)
vorbis_comment * ov_comment(OggVorbis_File *vf, int link)
int ov_open_callbacks(void *datasource, OggVorbis_File *vf, const char *initial, long ibytes, ov_callbacks callbacks)
long ov_read_float(OggVorbis_File *vf, float ***pcm_channels, int samples, int *bitstream)
int ov_clear(OggVorbis_File *vf)
int ov_test(FILE *f, OggVorbis_File *vf, const char *initial, long ibytes)
int ov_time_seek_page_lap(OggVorbis_File *vf, double pos)
long ov_read_filter(OggVorbis_File *vf, char *buffer, int length, int bigendianp, int word, int sgned, int *bitstream, void(*filter)(float **pcm, long channels, long samples, void *filter_param), void *filter_param)
int ov_raw_seek_lap(OggVorbis_File *vf, ogg_int64_t pos)
double ov_time_total(OggVorbis_File *vf, int i)
long ov_seekable(OggVorbis_File *vf)
int ov_fopen(const char *path, OggVorbis_File *vf)
long ov_streams(OggVorbis_File *vf)
int ov_test_open(OggVorbis_File *vf)
ogg_int64_t ov_pcm_total(OggVorbis_File *vf, int i)
int ov_pcm_seek_lap(OggVorbis_File *vf, ogg_int64_t pos)
ogg_int64_t ov_pcm_tell(OggVorbis_File *vf)
int ov_pcm_seek_page_lap(OggVorbis_File *vf, ogg_int64_t pos)
int ov_open(FILE *f, OggVorbis_File *vf, const char *initial, long ibytes)
ogg_int64_t ov_raw_tell(OggVorbis_File *vf)
long ov_bitrate_instant(OggVorbis_File *vf)
int ov_time_seek_lap(OggVorbis_File *vf, double pos)
int ov_raw_seek(OggVorbis_File *vf, ogg_int64_t pos)
int ov_test_callbacks(void *datasource, OggVorbis_File *vf, const char *initial, long ibytes, ov_callbacks callbacks)
int ov_time_seek(OggVorbis_File *vf, double pos)
int ov_halfrate(OggVorbis_File *vf, int flag)
int ov_halfrate_p(OggVorbis_File *vf)
int ov_crosslap(OggVorbis_File *vf1, OggVorbis_File *vf2)
long ov_bitrate(OggVorbis_File *vf, int i)