ov_raw_seek_lap.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <html>
  2. <head>
  3. <title>Vorbisfile - function - ov_raw_seek_lap</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>ov_raw_seek_lap</h1>
  14. <p><i>declared in "vorbis/vorbisfile.h";</i></p>
  15. <p>Seeks to the offset specified (in compressed raw bytes) within the
  16. physical bitstream. This variant of <a
  17. href="ov_raw_seek.html">ov_raw_seek</a> also automatically crosslaps
  18. the transition from the previous playback position into the new
  19. playback position in order to eliminate clicking and boundary
  20. discontinuities. Otherwise, usage and behavior is identical to <a
  21. href="ov_raw_seek.html">ov_raw_seek</a>.
  22. <p>When seek speed is a priority, but crosslapping is still desired,
  23. this is the best seek funtion to use.
  24. <p>ov_raw_seek_lap also updates everything needed within the decoder,
  25. so you can immediately call <a href="ov_read.html">ov_read()</a> and
  26. get data from the newly seeked to position.
  27. <p>ov_raw_seek_lap will lap between logical stream links of differing
  28. numbers of channels. Any extra channels from the origin of the seek
  29. are ignored; playback of these channels simply ends. Extra channels at
  30. the destination are lapped from silence. ov_raw_seek_lap will also
  31. lap between logical stream links of differing sample rates. In this
  32. case, the sample rates are ignored (no implicit resampling is done to
  33. match playback). It is up to the application developer to decide if
  34. this behavior makes any sense in a given context; in practical use,
  35. these default behaviors perform sensibly.
  36. <p>This function only works for seekable streams.
  37. <br><br>
  38. <table border=0 color=black cellspacing=0 cellpadding=7>
  39. <tr bgcolor=#cccccc>
  40. <td>
  41. <pre><b>
  42. int ov_raw_seek_lap(OggVorbis_File *vf,long pos);
  43. </b></pre>
  44. </td>
  45. </tr>
  46. </table>
  47. <h3>Parameters</h3>
  48. <dl>
  49. <dt><i>vf</i></dt>
  50. <dd>A pointer to the OggVorbis_File structure--this is used for ALL the externally visible libvorbisfile
  51. functions.</dd>
  52. <dt><i>pos</i></dt>
  53. <dd>Position in compressed bytes to seek to in the bitstream.</dd>
  54. </dl>
  55. <h3>Return Values</h3>
  56. <blockquote>
  57. <ul>
  58. <li>0 for success</li>
  59. <li>
  60. nonzero indicates failure, described by several error codes:
  61. <ul>
  62. <li>OV_ENOSEEK - Bitstream is not seekable.
  63. </li>
  64. <li>OV_EINVAL - Invalid argument value; possibly called with an OggVorbis_File structure that isn't open.
  65. </li>
  66. <li>OV_EREAD - A read from media returned an error.
  67. </li>
  68. <li>OV_EFAULT - Internal logic fault; indicates a bug or heap/stack
  69. corruption.
  70. </li>
  71. <li>OV_EOF - Indicates stream is at end of file immediately after a seek
  72. (making crosslap impossible as there's no preceeding decode state to crosslap).
  73. </li>
  74. <li>OV_EBADLINK - Invalid stream section supplied to libvorbisfile, or the requested link is corrupt.
  75. </li>
  76. </ul></li>
  77. </ul></blockquote>
  78. <p>
  79. <br><br>
  80. <hr noshade>
  81. <table border=0 width=100%>
  82. <tr valign=top>
  83. <td><p class=tiny>copyright &copy; 2007 Xiph.org</p></td>
  84. <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/">Ogg Vorbis</a></p></td>
  85. </tr><tr>
  86. <td><p class=tiny>Vorbisfile documentation</p></td>
  87. <td align=right><p class=tiny>vorbisfile version 1.2.0 - 20070723</p></td>
  88. </tr>
  89. </table>
  90. </body>
  91. </html>