annotate src/libvorbis-1.3.3/doc/vorbis-errors.txt @ 36:55ece8862b6d

Merge
author Chris Cannam
date Wed, 11 Mar 2015 13:32:44 +0000
parents 05aa0afa9217
children
rev   line source
Chris@1 1 Error return codes possible from libvorbis and libvorbisfile:
Chris@1 2
Chris@1 3 All 'failure' style returns are <0; this either indicates a generic
Chris@1 4 'false' value (eg, ready? T or F) or an error condition. Code can
Chris@1 5 safely just test for < 0, or look at the specific return code for more
Chris@1 6 detail.
Chris@1 7
Chris@1 8 *** Return codes:
Chris@1 9
Chris@1 10 OV_FALSE The call returned a 'false' status (eg, ov_bitrate_instant
Chris@1 11 can return OV_FALSE if playback is not in progress, and thus
Chris@1 12 there is no instantaneous bitrate information to report.
Chris@1 13
Chris@1 14 OV_HOLE libvorbis/libvorbisfile is alerting the application that
Chris@1 15 there was an interruption in the data (one of: garbage
Chris@1 16 between pages, loss of sync followed by recapture, or a
Chris@1 17 corrupt page)
Chris@1 18
Chris@1 19 OV_EREAD A read from media returned an error.
Chris@1 20
Chris@1 21 OV_EFAULT Internal logic fault; indicates a bug or heap/stack
Chris@1 22 corruption.
Chris@1 23
Chris@1 24 OV_EIMPL The bitstream makes use of a feature not implemented in this
Chris@1 25 library version.
Chris@1 26
Chris@1 27 OV_EINVAL Invalid argument value.
Chris@1 28
Chris@1 29 OV_ENOTVORBIS Bitstream/page/packet is not Vorbis data.
Chris@1 30
Chris@1 31 OV_EBADHEADER Invalid Vorbis bitstream header.
Chris@1 32
Chris@1 33 OV_EVERSION Vorbis version mismatch.
Chris@1 34
Chris@1 35 OV_ENOTAUDIO Packet data submitted to vorbis_synthesis is not audio data.
Chris@1 36
Chris@1 37 OV_EBADPACKET Invalid packet submitted to vorbis_synthesis.
Chris@1 38
Chris@1 39 OV_EBADLINK Invalid stream section supplied to libvorbis/libvorbisfile,
Chris@1 40 or the requested link is corrupt.
Chris@1 41
Chris@1 42 OV_ENOSEEK Bitstream is not seekable.
Chris@1 43
Chris@1 44
Chris@1 45 ****************************************************************
Chris@1 46 *** Libvorbis functions that can return failure/error codes:
Chris@1 47
Chris@1 48 int vorbis_analysis_headerout()
Chris@1 49 OV_EIMPL
Chris@1 50
Chris@1 51 int vorbis_analysis_wrote()
Chris@1 52 OV_EINVAL
Chris@1 53
Chris@1 54 int vorbis_synthesis_headerin()
Chris@1 55 OV_ENOTVORBIS, OV_EVERSION, OV_EBADHEADER
Chris@1 56
Chris@1 57 int vorbis_synthesis()
Chris@1 58 OV_ENOTAUDIO, OV_EBADPACKET
Chris@1 59
Chris@1 60 int vorbis_synthesis_read()
Chris@1 61 OV_EINVAL
Chris@1 62
Chris@1 63 ****************************************************************
Chris@1 64 *** Libvorbisfile functions that can return failure/error codes:
Chris@1 65
Chris@1 66 int ov_open_callbacks()
Chris@1 67 OV_EREAD, OV_ENOTVORBIS, OV_EVERSION, OV_EBADHEADER, OV_FAULT
Chris@1 68
Chris@1 69 int ov_open()
Chris@1 70 OV_EREAD, OV_ENOTVORBIS, OV_EVERSION, OV_EBADHEADER, OV_FAULT
Chris@1 71
Chris@1 72 long ov_bitrate()
Chris@1 73 OV_EINVAL, OV_FALSE
Chris@1 74
Chris@1 75 long ov_bitrate_instant()
Chris@1 76 OV_FALSE
Chris@1 77
Chris@1 78 ogg_int64_t ov_raw_total()
Chris@1 79 OV_EINVAL
Chris@1 80
Chris@1 81 ogg_int64_t ov_pcm_total()
Chris@1 82 OV_EINVAL
Chris@1 83
Chris@1 84 double ov_time_total()
Chris@1 85 OV_EINVAL
Chris@1 86
Chris@1 87 int ov_raw_seek()
Chris@1 88 OV_ENOSEEK, OV_EINVAL, OV_BADLINK
Chris@1 89
Chris@1 90 int ov_pcm_seek_page()
Chris@1 91 OV_ENOSEEK, OV_EINVAL, OV_EREAD, OV_BADLINK, OV_FAULT
Chris@1 92
Chris@1 93 int ov_pcm_seek()
Chris@1 94 OV_ENOSEEK, OV_EINVAL, OV_EREAD, OV_BADLINK, OV_FAULT
Chris@1 95
Chris@1 96 int ov_time_seek()
Chris@1 97 OV_ENOSEEK, OV_EINVAL, OV_EREAD, OV_BADLINK, OV_FAULT
Chris@1 98
Chris@1 99 int ov_time_seek_page()
Chris@1 100 OV_ENOSEEK, OV_EINVAL, OV_EREAD, OV_BADLINK, OV_FAULT
Chris@1 101
Chris@1 102 long ov_read()
Chris@1 103 OV_HOLE, OV_EBADLINK