Chris@1: Chris@1: Chris@1:
Chris@1:Vorbisfile documentation |
Chris@1: vorbisfile version 1.3.2 - 20101101 |
Chris@1:
declared in "vorbis/vorbisfile.h";
Chris@1: Chris@1:This is an alternative function used to open and test an OggVorbis_File Chris@1: structure when using a data source other than a file, Chris@1: when its necessary to modify default file access behavior, or to Chris@1: test for Vorbis content from a FILE * pointer under Chris@1: Windows where ov_test() cannot be used. It Chris@1: allows the application to specify custom file manipulation routines Chris@1: and sets up all the related decoding structures. Chris@1: Chris@1:
Once this has been called, the same OggVorbis_File Chris@1: struct should be passed to all the libvorbisfile functions. Chris@1:
Chris@1:
Chris@1:
Chris@1: Chris@1: int ov_test_callbacks(void *datasource, OggVorbis_File *vf, char *initial, long ibytes, ov_callbacks callbacks); Chris@1:Chris@1: |
Chris@1:
Chris@1:Chris@1:0 for success Chris@1:less than zero for failure: Chris@1:Chris@1:
Chris@1:- OV_EREAD - A read from media returned an error.
Chris@1:- OV_ENOTVORBIS - Bitstream contains no Vorbis data.
Chris@1:- OV_EVERSION - Vorbis version mismatch.
Chris@1:- OV_EBADHEADER - Invalid Vorbis bitstream header.
Chris@1:- OV_EFAULT - Internal logic fault; indicates a bug or heap/stack corruption.
Chris@1:
Chris@1: Chris@1:
Windows Chris@1: applications should not use ov_test() due Chris@1: to the likelihood of CRT linking Chris@1: mismatches and runtime protection faults Chris@1: [ov_open:a]. ov_test_callbacks() is a safe substitute; specifically: Chris@1: Chris@1:
ov_test_callbacks(f, vf, initial, ibytes, OV_CALLBACKS_DEFAULT); Chris@1:Chris@1: Chris@1: ... provides exactly the same functionality as ov_test() but will always work correctly under Chris@1: Windows, regardless of linking setup details.
Chris@1: Chris@1:
copyright © 2000-2010 Xiph.Org |
Chris@1: Chris@1: |
Vorbisfile documentation |
Chris@1: vorbisfile version 1.3.2 - 20101101 |
Chris@1: