ov_pcm_seek_page.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <html>
  2. <head>
  3. <title>Tremor - function - ov_pcm_seek_page</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_pcm_seek_page</h1>
  14. <p><i>declared in "ivorbisfile.h";</i></p>
  15. <p>Seeks to the closest page preceding the specified location (in pcm samples) within the physical bitstream. This function only works for seekable streams.
  16. <p>This function is faster than <a href="ov_pcm_seek.html">ov_pcm_seek</a> because the function can begin decoding at a page boundary rather than seeking through any remaining samples before the specified location. However, it is less accurate.
  17. <p>This also updates everything needed within the
  18. decoder, so you can immediately call <a href="ov_read.html">ov_read()</a> and get data from
  19. the newly seeked to position.
  20. <p>
  21. <br><br>
  22. <table border=0 color=black cellspacing=0 cellpadding=7>
  23. <tr bgcolor=#cccccc>
  24. <td>
  25. <pre><b>
  26. int ov_pcm_seek_page(OggVorbis_File *vf,ogg_int64_t pos);
  27. </b></pre>
  28. </td>
  29. </tr>
  30. </table>
  31. <h3>Parameters</h3>
  32. <dl>
  33. <dt><i>vf</i></dt>
  34. <dd>A pointer to the OggVorbis_File structure--this is used for ALL the externally visible libvorbisidec
  35. functions.</dd>
  36. <dt><i>pos</i></dt>
  37. <dd>Position in pcm samples to seek to in the bitstream.</dd>
  38. </dl>
  39. <h3>Return Values</h3>
  40. <blockquote>
  41. <li>
  42. 0 for success</li>
  43. <li>
  44. nonzero indicates failure, described by several error codes:</li>
  45. <ul>
  46. <li>OV_ENOSEEK - Bitstream is not seekable.
  47. </li>
  48. <li>OV_EINVAL - Invalid argument value.
  49. </li>
  50. <li>OV_EREAD - A read from media returned an error.
  51. </li>
  52. <li>OV_EFAULT - Internal logic fault; indicates a bug or heap/stack
  53. corruption.
  54. </li>
  55. <li>OV_EBADLINK - Invalid stream section supplied to libvorbisidec, or the requested link is corrupt.
  56. </li>
  57. </ul></blockquote>
  58. <br><br>
  59. <hr noshade>
  60. <table border=0 width=100%>
  61. <tr valign=top>
  62. <td><p class=tiny>copyright &copy; 2002 Xiph.org</p></td>
  63. <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/">Ogg Vorbis</a></p></td>
  64. </tr><tr>
  65. <td><p class=tiny>Tremor documentation</p></td>
  66. <td align=right><p class=tiny>Tremor version 1.0 - 20020403</p></td>
  67. </tr>
  68. </table>
  69. </body>
  70. </html>