vorbis-errors.txt 2.7 KB

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