Vorbisfile documentation |
vorbisfile version 1.3.2 - 20101101 |
declared in "vorbis/codec.h"
The ov_callbacks structure contains file manipulation function prototypes necessary for opening, closing, seeking, and location.
The ov_callbacks structure does not need to be user-defined if you are working with stdio-based file manipulation; the ov_fopen() and ov_open() calls internally provide default callbacks for stdio. ov_callbacks are defined and passed to ov_open_callbacks() when implementing non-stdio based stream manipulation (such as playback from a memory buffer) or when ov_open()-style initialization from a FILE * is required under Windows [a].
typedef struct { size_t (*read_func) (void *ptr, size_t size, size_t nmemb, void *datasource); int (*seek_func) (void *datasource, ogg_int64_t offset, int whence); int (*close_func) (void *datasource); long (*tell_func) (void *datasource); } ov_callbacks; |
copyright © 2000-2010 Xiph.Org |
|
Vorbisfile documentation |
vorbisfile version 1.3.2 - 20101101 |