ov_time_seek.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <html>
  2. <head>
  3. <title>Tremor - function - ov_time_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_time_seek</h1>
  14. <p><i>declared in "ivorbisfile.h";</i></p>
  15. <p>For seekable
  16. streams, this seeks to the given time. For implementing seeking in a player,
  17. this is the only function generally needed. 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. This function does not work for unseekable streams.
  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_time_seek(<a href="OggVorbis_File.html">OggVorbis_File</a> *vf, ogg_int64_t ms);
  26. </b></pre>
  27. </td>
  28. </tr>
  29. </table>
  30. <h3>Parameters</h3>
  31. <dl>
  32. <dt><i>vf</i></dt>
  33. <dd>Pointer to our already opened and initialized OggVorbis_File structure.</dd>
  34. <dt><i>ms</i></dt>
  35. <dd>Location to seek to within the file, specified in milliseconds.</dd>
  36. </dl>
  37. <h3>Return Values</h3>
  38. <blockquote>
  39. <li>
  40. 0 for success</li>
  41. <li>
  42. Nonzero for failure</li>
  43. </blockquote>
  44. <br><br>
  45. <hr noshade>
  46. <table border=0 width=100%>
  47. <tr valign=top>
  48. <td><p class=tiny>copyright &copy; 2002 Xiph.org</p></td>
  49. <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/">Ogg Vorbis</a></p></td>
  50. </tr><tr>
  51. <td><p class=tiny>Tremor documentation</p></td>
  52. <td align=right><p class=tiny>Tremor version 1.0 - 20020403</p></td>
  53. </tr>
  54. </table>
  55. </body>
  56. </html>