seeking.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <html>
  2. <head>
  3. <title>Tremor - Seeking</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>Seeking</h1>
  14. <p>Seeking functions allow you to specify a specific point in the stream to begin or continue decoding.
  15. <p>
  16. All libvorbisidec seeking routines are declared in "ivorbisfile.h".
  17. <p>Certain seeking functions are best suited to different situations.
  18. When speed is important and exact positioning isn't required,
  19. page-level seeking should be used. Note also that Vorbis files do not
  20. necessarily start at a sample number or time offset of zero. Do not
  21. be surprised if a file begins at a positive offset of several minutes
  22. or hours, such as would happen if a large stream (such as a concert
  23. recording) is chopped into multiple separate files. Requesting to
  24. seek to a position before the beginning of such a file will seek to
  25. the position where audio begins.<p>
  26. </ul>
  27. <table border=1 color=black width=50% cellspacing=0 cellpadding=7>
  28. <tr bgcolor=#cccccc>
  29. <td><b>function</b></td>
  30. <td><b>purpose</b></td>
  31. </tr>
  32. <tr valign=top>
  33. <td><a href="ov_raw_seek.html">ov_raw_seek</a></td>
  34. <td>This function seeks to a position specified in the compressed bitstream, specified in bytes.</td>
  35. </tr>
  36. <tr valign=top>
  37. <td><a href="ov_pcm_seek.html">ov_pcm_seek</a></td>
  38. <td>This function seeks to a specific audio sample number, specified in pcm samples.</td>
  39. </tr>
  40. <tr valign=top>
  41. <td><a href="ov_pcm_seek_page.html">ov_pcm_seek_page</a></td>
  42. <td>This function seeks to the closest page preceding the specified audio sample number, specified in pcm samples.</td>
  43. </tr>
  44. <tr valign=top>
  45. <td><a href="ov_time_seek.html">ov_time_seek</a></td>
  46. <td>This function seeks to the specific time location in the bitstream, specified in integer milliseconds. Note that this differs from the reference vorbisfile implementation, which takes seconds as a float. </td>
  47. </tr>
  48. <tr valign=top>
  49. <td><a href="ov_time_seek_page.html">ov_time_seek_page</a></td>
  50. <td>This function seeks to the closest page preceding the specified time position in the bitstream, specified in integer milliseconds.</td>
  51. </tr>
  52. </table>
  53. <br><br>
  54. <hr noshade>
  55. <table border=0 width=100%>
  56. <tr valign=top>
  57. <td><p class=tiny>copyright &copy; 2002 Xiph.org</p></td>
  58. <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/">Ogg Vorbis</a></p></td>
  59. </tr><tr>
  60. <td><p class=tiny>Tremor documentation</p></td>
  61. <td align=right><p class=tiny>Tremor version 1.0 - 20020403</p></td>
  62. </tr>
  63. </table>
  64. </body>
  65. </html>