4 <title>Vorbisfile - function - ov_time_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.68 - 20030307</p></td>
18 <p><i>declared in "vorbis/vorbisfile.h";</i></p>
21 streams, this seeks to the given time. For implementing seeking in a player,
22 this is the only function generally needed. This also updates everything needed within the
23 decoder, so you can immediately call <a href="ov_read.html">ov_read()</a> and get data from
24 the newly seeked to position. This function does not work for unseekable streams.
27 <table border=0 color=black cellspacing=0 cellpadding=7>
31 int ov_time_seek(<a href="OggVorbis_File.html">OggVorbis_File</a> *vf, double s);
40 <dd>Pointer to our already opened and initialized OggVorbis_File structure.</dd>
42 <dd>Location to seek to within the file, specified in seconds.</dd>
46 <h3>Return Values</h3>
49 <li>0 for success</li>
52 nonzero indicates failure, described by several error codes:
54 <li>OV_ENOSEEK - Bitstream is not seekable.
56 <li>OV_EINVAL - Invalid argument value; possibly called with an OggVorbis_File structure that isn't open.
58 <li>OV_EREAD - A read from media returned an error.
60 <li>OV_EFAULT - Internal logic fault; indicates a bug or heap/stack
63 <li>OV_EBADLINK - Invalid stream section supplied to libvorbisfile, or the requested link is corrupt.
70 <table border=0 width=100%>
72 <td><p class=tiny>copyright © 2003 Xiph.org</p></td>
73 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/">Ogg Vorbis</a></p></td>
75 <td><p class=tiny>Vorbisfile documentation</p></td>
76 <td align=right><p class=tiny>vorbisfile version 1.68 - 20030307</p></td>