4 <title>libvorbis - function - vorbis_granule_time</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>libvorbis documentation</p></td>
12 <td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>
16 <h1>vorbis_granule_time</h1>
18 <p><i>declared in "vorbis/codec.h";</i></p>
20 <p>This function converts a granule position to a time for a given Vorbis stream.</p>
22 <table border=0 color=black cellspacing=0 cellpadding=7>
26 extern double vorbis_granule_time(vorbis_dsp_state *v,
27 ogg_int64_t granulepos);
36 <dd>Pointer to the vorbis_dsp_state for the stream.</dd>
37 <dt><i>granulepos</i></dt>
38 <dd>The granule position.</dd>
42 <h3>Return Values</h3>
45 The time (in seconds) corresponding to the granulepos.</li>
46 <li>-1 if the given granulepos is negative</li>
52 <table border=0 width=100%>
54 <td><p class=tiny>copyright © 2010 Xiph.Org</p></td>
55 <td align=right><p class=tiny><a href="https://xiph.org/vorbis/">Ogg Vorbis</a></p></td>
57 <td><p class=tiny>libvorbis documentation</p></td>
58 <td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>