4 <title>vorbisfile - function - ov_raw_seek</title>
5 <link rel=stylesheet href="style.css" type="text/css">
8 <body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
9 <table border=0 width=100%>
11 <td><p class=tiny>vorbisfile documentation</p></td>
12 <td align=right><p class=tiny>vorbisfile version 1.25 - 20000615</p></td>
18 <p><i>declared in "vorbis/vorbisfile.h";</i></p>
20 <p>Seeks to the offset specified (in compressed raw bytes) within the physical bitstream. This function only works for seekable streams.
21 <p>This also updates everything needed within the
22 decoder, so you can immediately call <a href="ov_read.html">ov_read()</a> and get data from
23 the newly seeked to position.
24 <p>When seek speed is a priority, this is the best vorbisfile seek funtion to use.
26 <table border=0 color=black cellspacing=0 cellpadding=7>
30 int ov_raw_seek(OggVorbis_File *vf,long pos);
39 <dd>A pointer to the OggVorbis_File structure--this is used for ALL the externally visible vorbisfile
40 functions. Once this has been called, the same <tt>OggVorbis_File</tt>
41 struct should be passed to all the vorbisfile functions.</dd>
43 <dd>Position in compressed bytes to seek to in the bitstream.</dd>
47 <h3>Return Values</h3>
50 0 indicates success</li>
51 <li>nonzero indicates failure, described by several error codes:</li>
\r
53 <li>OV_ENOSEEK - Bitstream is not seekable.
\r
55 <li>OV_EINVAL - Invalid argument value.
\r
57 <li>OV_EBADLINK - Invalid stream section supplied to libvorbis/libvorbisfile, or the requested link is corrupt.
\r
64 <table border=0 width=100%>
66 <td><p class=tiny>copyright © 2000 vorbis team</p></td>
67 <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>
69 <td><p class=tiny>vorbisfile documentation</p></td>
70 <td align=right><p class=tiny>vorbisfile version 1.25 - 20000615</p></td>