seeking.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <html>
  2. <head>
  3. <title>Vorbisfile - 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>Vorbisfile documentation</p></td>
  10. <td align=right><p class=tiny>vorbisfile version 1.2.0 - 20070723</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 libvorbisfile seeking routines are declared in "vorbis/vorbisfile.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.
  26. <p>As of vorbisfile version 1.68, seeking also optionally provides
  27. automatic crosslapping to eliminate clicks and other discontinuity
  28. artifacts at seeking boundaries. This fetaure is of particular
  29. interest to player and game developers implementing dynamic music and
  30. audio engines, or others looking for smooth transitions within a
  31. single sample or across multiple samples.<p>
  32. <p>Naturally, seeking is available only within a seekable file or
  33. stream. Seeking functions will return <tt>OV_ENOSEEK</tt> on
  34. nonseekable files and streams.
  35. </ul>
  36. <table border=1 color=black width=50% cellspacing=0 cellpadding=7>
  37. <tr bgcolor=#cccccc>
  38. <td><b>function</b></td>
  39. <td><b>purpose</b></td>
  40. </tr>
  41. <tr valign=top>
  42. <td><a href="ov_raw_seek.html">ov_raw_seek</a></td>
  43. <td>This function seeks to a position specified in the compressed bitstream, specified in bytes.</td>
  44. </tr>
  45. <tr valign=top>
  46. <td><a href="ov_pcm_seek.html">ov_pcm_seek</a></td>
  47. <td>This function seeks to a specific audio sample number, specified in pcm samples.</td>
  48. </tr>
  49. <tr valign=top>
  50. <td><a href="ov_pcm_seek_page.html">ov_pcm_seek_page</a></td>
  51. <td>This function seeks to the closest page preceding the specified audio sample number, specified in pcm samples.</td>
  52. </tr>
  53. <tr valign=top>
  54. <td><a href="ov_time_seek.html">ov_time_seek</a></td>
  55. <td>This function seeks to the specific time location in the bitstream, specified in seconds </td>
  56. </tr>
  57. <tr valign=top>
  58. <td><a href="ov_time_seek_page.html">ov_time_seek_page</a></td>
  59. <td>This function seeks to the closest page preceding the specified time position in the bitstream</td>
  60. </tr>
  61. </tr>
  62. <tr valign=top>
  63. <td><a href="ov_raw_seek_lap.html">ov_raw_seek_lap</a></td>
  64. <td>This function seeks to a position specified in the compressed bitstream, specified in bytes. The boundary between the old and new playback positions is crosslapped to eliminate discontinuities. </td>
  65. </tr>
  66. <tr valign=top>
  67. <td><a href="ov_pcm_seek_lap.html">ov_pcm_seek_lap</a></td>
  68. <td>This function seeks to a specific audio sample number, specified in pcm samples. The boundary between the old and new playback positions is crosslapped to eliminate discontinuities.</td>
  69. </tr>
  70. <tr valign=top>
  71. <td><a href="ov_pcm_seek_page_lap.html">ov_pcm_seek_page_lap</a></td>
  72. <td>This function seeks to the closest page preceding the specified audio sample number, specified in pcm samples. The boundary between the old and new playback positions is crosslapped to eliminate discontinuities.</td>
  73. </tr>
  74. <tr valign=top>
  75. <td><a href="ov_time_seek_lap.html">ov_time_seek_lap</a></td>
  76. <td>This function seeks to the specific time location in the bitstream, specified in seconds. The boundary between the old and new playback positions is crosslapped to eliminate discontinuities. </td>
  77. </tr>
  78. <tr valign=top>
  79. <td><a href="ov_time_seek_page_lap.html">ov_time_seek_page_lap</a></td>
  80. <td>This function seeks to the closest page preceding the specified time position in the bitstream. The boundary between the old and new playback positions is crosslapped to eliminate discontinuities.</td>
  81. </tr>
  82. </table>
  83. <br><br>
  84. <hr noshade>
  85. <table border=0 width=100%>
  86. <tr valign=top>
  87. <td><p class=tiny>copyright &copy; 2007 Xiph.org</p></td>
  88. <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/">Ogg Vorbis</a></p></td>
  89. </tr><tr>
  90. <td><p class=tiny>Vorbisfile documentation</p></td>
  91. <td align=right><p class=tiny>vorbisfile version 1.2.0 - 20070723</p></td>
  92. </tr>
  93. </table>
  94. </body>
  95. </html>