ov_time_seek.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <html>
  2. <head>
  3. <title>vorbisfile - 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>vorbisfile documentation</p></td>
  10. <td align=right><p class=tiny>vorbisfile version 1.25 - 20000615</p></td>
  11. </tr>
  12. </table>
  13. <h1>ov_time_seek</h1>
  14. <p><i>declared in "vorbis/vorbisfile.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. For obvious reasons, this doesn't 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, double seconds);
  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>seconds</i></dt>
  35. <dd>Location to seek to within the file, specified in seconds.</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; 2000 vorbis team</p></td>
  49. <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/index.html">Ogg Vorbis</a><br><a href="mailto:team@vorbis.org">team@vorbis.org</a></p></td>
  50. </tr><tr>
  51. <td><p class=tiny>vorbisfile documentation</p></td>
  52. <td align=right><p class=tiny>vorbisfile version 1.25 - 20000615</p></td>
  53. </tr>
  54. </table>
  55. </body>
  56. </html>