ov_raw_seek.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <html>
  2. <head>
  3. <title>Tremor - function - ov_raw_seek</title>
  4. <link rel=stylesheet href="style.css" type="text/css">
  5. </head>
  6. <body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
  7. <table border=0 width=100%>
  8. <tr>
  9. <td><p class=tiny>Tremor documentation</p></td>
  10. <td align=right><p class=tiny>Tremor version 1.0 - 20020403</p></td>
  11. </tr>
  12. </table>
  13. <h1>ov_raw_seek</h1>
  14. <p><i>declared in "ivorbisfile.h";</i></p>
  15. <p>Seeks to the offset specified (in compressed raw bytes) within the physical bitstream. This function only works for seekable streams.
  16. <p>This also updates everything needed within the
  17. decoder, so you can immediately call <a href="ov_read.html">ov_read()</a> and get data from
  18. the newly seeked to position.
  19. <p>When seek speed is a priority, this is the best seek funtion to use.
  20. <br><br>
  21. <table border=0 color=black cellspacing=0 cellpadding=7>
  22. <tr bgcolor=#cccccc>
  23. <td>
  24. <pre><b>
  25. int ov_raw_seek(OggVorbis_File *vf,long pos);
  26. </b></pre>
  27. </td>
  28. </tr>
  29. </table>
  30. <h3>Parameters</h3>
  31. <dl>
  32. <dt><i>vf</i></dt>
  33. <dd>A pointer to the OggVorbis_File structure--this is used for ALL the externally visible libvorbisidec
  34. functions.</dd>
  35. <dt><i>pos</i></dt>
  36. <dd>Position in compressed bytes to seek to in the bitstream.</dd>
  37. </dl>
  38. <h3>Return Values</h3>
  39. <blockquote>
  40. <li>0 indicates success</li>
  41. <li>nonzero indicates failure, described by several error codes:</li>
  42. <ul>
  43. <li>OV_ENOSEEK - Bitstream is not seekable.
  44. </li>
  45. <li>OV_EINVAL - Invalid argument value.
  46. </li>
  47. <li>OV_EBADLINK - Invalid stream section supplied to libvorbisidec, or the requested link is corrupt.
  48. </li>
  49. </ul>
  50. </blockquote>
  51. <p>
  52. <br><br>
  53. <hr noshade>
  54. <table border=0 width=100%>
  55. <tr valign=top>
  56. <td><p class=tiny>copyright &copy; 2002 Xiph.org</p></td>
  57. <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/">Ogg Vorbis</a></p></td>
  58. </tr><tr>
  59. <td><p class=tiny>Tremor documentation</p></td>
  60. <td align=right><p class=tiny>Tremor version 1.0 - 20020403</p></td>
  61. </tr>
  62. </table>
  63. </body>
  64. </html>