00001 <html>
00002
00003 <head>
00004 <title>Tremor - Seeking</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>Seeking</h1>
00017 <p>Seeking functions allow you to specify a specific point in the stream to begin or continue decoding.
00018 <p>
00019 All libvorbisidec seeking routines are declared in "ivorbisfile.h".
00020
00021 <p>Certain seeking functions are best suited to different situations.
00022 When speed is important and exact positioning isn't required,
00023 page-level seeking should be used. Note also that Vorbis files do not
00024 necessarily start at a sample number or time offset of zero. Do not
00025 be surprised if a file begins at a positive offset of several minutes
00026 or hours, such as would happen if a large stream (such as a concert
00027 recording) is chopped into multiple separate files. Requesting to
00028 seek to a position before the beginning of such a file will seek to
00029 the position where audio begins.<p>
00030
00031 </ul>
00032
00033 <table border=1 color=black width=50% cellspacing=0 cellpadding=7>
00034 <tr bgcolor=#cccccc>
00035 <td><b>function</b></td>
00036 <td><b>purpose</b></td>
00037 </tr>
00038 <tr valign=top>
00039 <td><a href="ov_raw_seek.html">ov_raw_seek</a></td>
00040 <td>This function seeks to a position specified in the compressed bitstream, specified in bytes.</td>
00041 </tr>
00042 <tr valign=top>
00043 <td><a href="ov_pcm_seek.html">ov_pcm_seek</a></td>
00044 <td>This function seeks to a specific audio sample number, specified in pcm samples.</td>
00045 </tr>
00046 <tr valign=top>
00047 <td><a href="ov_pcm_seek_page.html">ov_pcm_seek_page</a></td>
00048 <td>This function seeks to the closest page preceding the specified audio sample number, specified in pcm samples.</td>
00049 </tr>
00050 <tr valign=top>
00051 <td><a href="ov_time_seek.html">ov_time_seek</a></td>
00052 <td>This function seeks to the specific time location in the bitstream, specified in integer milliseconds. Note that this differs from the reference vorbisfile implementation, which takes seconds as a float. </td>
00053 </tr>
00054 <tr valign=top>
00055 <td><a href="ov_time_seek_page.html">ov_time_seek_page</a></td>
00056 <td>This function seeks to the closest page preceding the specified time position in the bitstream, specified in integer milliseconds.</td>
00057 </tr>
00058 </table>
00059
00060 <br><br>
00061 <hr noshade>
00062 <table border=0 width=100%>
00063 <tr valign=top>
00064 <td><p class=tiny>copyright © 2002 Xiph.org</p></td>
00065 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/">Ogg Vorbis</a></p></td>
00066 </tr><tr>
00067 <td><p class=tiny>Tremor documentation</p></td>
00068 <td align=right><p class=tiny>Tremor version 1.0 - 20020403</p></td>
00069 </tr>
00070 </table>
00071
00072 </body>
00073
00074 </html>