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