00001 <html> 00002 00003 <head> 00004 <title>Tremor - function - ov_time_seek</title> 00005 <link rel=stylesheet href="style.css" type="text/css"> 00006 </head> 00007 00008 <body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff"> 00009 <table border=0 width=100%> 00010 <tr> 00011 <td><p class=tiny>Tremor documentation</p></td> 00012 <td align=right><p class=tiny>Tremor version 1.0 - 20020403</p></td> 00013 </tr> 00014 </table> 00015 00016 <h1>ov_time_seek</h1> 00017 00018 <p><i>declared in "ivorbisfile.h";</i></p> 00019 00020 <p>For seekable 00021 streams, this seeks to the given time. For implementing seeking in a player, 00022 this is the only function generally needed. This also updates everything needed within the 00023 decoder, so you can immediately call <a href="ov_read.html">ov_read()</a> and get data from 00024 the newly seeked to position. This function does not work for unseekable streams. 00025 00026 <br><br> 00027 <table border=0 color=black cellspacing=0 cellpadding=7> 00028 <tr bgcolor=#cccccc> 00029 <td> 00030 <pre><b> 00031 int ov_time_seek(<a href="OggVorbis_File.html">OggVorbis_File</a> *vf, ogg_int64_t ms); 00032 </b></pre> 00033 </td> 00034 </tr> 00035 </table> 00036 00037 <h3>Parameters</h3> 00038 <dl> 00039 <dt><i>vf</i></dt> 00040 <dd>Pointer to our already opened and initialized OggVorbis_File structure.</dd> 00041 <dt><i>ms</i></dt> 00042 <dd>Location to seek to within the file, specified in milliseconds.</dd> 00043 </dl> 00044 00045 00046 <h3>Return Values</h3> 00047 <blockquote> 00048 <li> 00049 0 for success</li> 00050 00051 <li> 00052 Nonzero for failure</li> 00053 </blockquote> 00054 00055 00056 <br><br> 00057 <hr noshade> 00058 <table border=0 width=100%> 00059 <tr valign=top> 00060 <td><p class=tiny>copyright © 2002 Xiph.org</p></td> 00061 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/">Ogg Vorbis</a></p></td> 00062 </tr><tr> 00063 <td><p class=tiny>Tremor documentation</p></td> 00064 <td align=right><p class=tiny>Tremor version 1.0 - 20020403</p></td> 00065 </tr> 00066 </table> 00067 00068 </body> 00069 00070 </html>