1 Error return codes possible from libvorbis and libvorbisfile:
3 All 'failure' style returns are <0; this either indicates a generic
4 'false' value (eg, ready? T or F) or an error condition. Code can
5 safely just test for < 0, or look at the specific return code for more
10 OV_FALSE The call returned a 'false' status (eg, ov_bitrate_instant
11 can return OV_FALSE if playback is not in progress, and thus
12 there is no instantaneous bitrate information to report.
14 OV_HOLE libvorbis/libvorbisfile is alerting the application that
15 there was an interruption in the data (one of: garbage
16 between pages, loss of sync followed by recapture, or a
19 OV_EREAD A read from media returned an error.
21 OV_EFAULT Internal logic fault; indicates a bug or heap/stack
24 OV_EIMPL The bitstream makes use of a feature not implemented in this
27 OV_EINVAL Invalid argument value.
29 OV_ENOTVORBIS Bitstream/page/packet is not Vorbis data.
31 OV_EBADHEADER Invalid Vorbis bitstream header.
33 OV_EVERSION Vorbis version mismatch.
35 OV_ENOTAUDIO Packet data submitted to vorbis_synthesis is not audio data.
37 OV_EBADPACKET Invalid packet submitted to vorbis_synthesis.
39 OV_EBADLINK Invalid stream section supplied to libvorbis/libvorbisfile,
40 or the requested link is corrupt.
42 OV_ENOSEEK Bitstream is not seekable.
45 ****************************************************************
46 *** Libvorbis functions that can return failure/error codes:
48 int vorbis_analysis_headerout()
51 int vorbis_analysis_wrote()
54 int vorbis_synthesis_headerin()
55 OV_ENOTVORBIS, OV_EVERSION, OV_EBADHEADER
57 int vorbis_synthesis()
58 OV_ENOTAUDIO, OV_EBADPACKET
60 int vorbis_synthesis_read()
63 ****************************************************************
64 *** Libvorbisfile functions that can return failure/error codes:
66 int ov_open_callbacks()
67 OV_EREAD, OV_ENOTVORBIS, OV_EVERSION, OV_EBADHEADER, OV_FAULT
70 OV_EREAD, OV_ENOTVORBIS, OV_EVERSION, OV_EBADHEADER, OV_FAULT
75 long ov_bitrate_instant()
78 ogg_int64_t ov_raw_total()
81 ogg_int64_t ov_pcm_total()
84 double ov_time_total()
88 OV_ENOSEEK, OV_EINVAL, OV_BADLINK
90 int ov_pcm_seek_page()
91 OV_ENOSEEK, OV_EINVAL, OV_EREAD, OV_BADLINK, OV_FAULT
94 OV_ENOSEEK, OV_EINVAL, OV_EREAD, OV_BADLINK, OV_FAULT
97 OV_ENOSEEK, OV_EINVAL, OV_EREAD, OV_BADLINK, OV_FAULT
99 int ov_time_seek_page()
100 OV_ENOSEEK, OV_EINVAL, OV_EREAD, OV_BADLINK, OV_FAULT