VirtualBox

source: vbox/trunk/src/libs/libvorbis-1.3.7/doc/vorbis-errors.txt@ 103131

Last change on this file since 103131 was 96468, checked in by vboxsync, 2 years ago

libs/libvorbis-1.3.7: Re-exporting, hopefully this time everything is there. bugref:10275

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1Error return codes possible from libvorbis and libvorbisfile:
2
3All 'failure' style returns are <0; this either indicates a generic
4'false' value (eg, ready? T or F) or an error condition. Code can
5safely just test for < 0, or look at the specific return code for more
6detail.
7
8*** Return codes:
9
10OV_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.
13
14OV_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
17 corrupt page)
18
19OV_EREAD A read from media returned an error.
20
21OV_EFAULT Internal logic fault; indicates a bug or heap/stack
22 corruption.
23
24OV_EIMPL The bitstream makes use of a feature not implemented in this
25 library version.
26
27OV_EINVAL Invalid argument value.
28
29OV_ENOTVORBIS Bitstream/page/packet is not Vorbis data.
30
31OV_EBADHEADER Invalid Vorbis bitstream header.
32
33OV_EVERSION Vorbis version mismatch.
34
35OV_ENOTAUDIO Packet data submitted to vorbis_synthesis is not audio data.
36
37OV_EBADPACKET Invalid packet submitted to vorbis_synthesis.
38
39OV_EBADLINK Invalid stream section supplied to libvorbis/libvorbisfile,
40 or the requested link is corrupt.
41
42OV_ENOSEEK Bitstream is not seekable.
43
44
45****************************************************************
46*** Libvorbis functions that can return failure/error codes:
47
48int vorbis_analysis_headerout()
49 OV_EIMPL
50
51int vorbis_analysis_wrote()
52 OV_EINVAL
53
54int vorbis_synthesis_headerin()
55 OV_ENOTVORBIS, OV_EVERSION, OV_EBADHEADER
56
57int vorbis_synthesis()
58 OV_ENOTAUDIO, OV_EBADPACKET
59
60int vorbis_synthesis_read()
61 OV_EINVAL
62
63****************************************************************
64*** Libvorbisfile functions that can return failure/error codes:
65
66int ov_open_callbacks()
67 OV_EREAD, OV_ENOTVORBIS, OV_EVERSION, OV_EBADHEADER, OV_FAULT
68
69int ov_open()
70 OV_EREAD, OV_ENOTVORBIS, OV_EVERSION, OV_EBADHEADER, OV_FAULT
71
72long ov_bitrate()
73 OV_EINVAL, OV_FALSE
74
75long ov_bitrate_instant()
76 OV_FALSE
77
78ogg_int64_t ov_raw_total()
79 OV_EINVAL
80
81ogg_int64_t ov_pcm_total()
82 OV_EINVAL
83
84double ov_time_total()
85 OV_EINVAL
86
87int ov_raw_seek()
88 OV_ENOSEEK, OV_EINVAL, OV_BADLINK
89
90int ov_pcm_seek_page()
91 OV_ENOSEEK, OV_EINVAL, OV_EREAD, OV_BADLINK, OV_FAULT
92
93int ov_pcm_seek()
94 OV_ENOSEEK, OV_EINVAL, OV_EREAD, OV_BADLINK, OV_FAULT
95
96int ov_time_seek()
97 OV_ENOSEEK, OV_EINVAL, OV_EREAD, OV_BADLINK, OV_FAULT
98
99int ov_time_seek_page()
100 OV_ENOSEEK, OV_EINVAL, OV_EREAD, OV_BADLINK, OV_FAULT
101
102long ov_read()
103 OV_HOLE, OV_EBADLINK
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette