vorbis_granule_time.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <html>
  2. <head>
  3. <title>libvorbis - function - vorbis_granule_time</title>
  4. <link rel=stylesheet href="style.css" type="text/css">
  5. </head>
  6. <body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
  7. <table border=0 width=100%>
  8. <tr>
  9. <td><p class=tiny>libvorbis documentation</p></td>
  10. <td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>
  11. </tr>
  12. </table>
  13. <h1>vorbis_granule_time</h1>
  14. <p><i>declared in "vorbis/codec.h";</i></p>
  15. <p>This function converts a granule position to a time for a given Vorbis stream.</p>
  16. <table border=0 color=black cellspacing=0 cellpadding=7>
  17. <tr bgcolor=#cccccc>
  18. <td>
  19. <pre><b>
  20. extern double vorbis_granule_time(vorbis_dsp_state *v,
  21. ogg_int64_t granulepos);
  22. </b></pre>
  23. </td>
  24. </tr>
  25. </table>
  26. <h3>Parameters</h3>
  27. <dl>
  28. <dt><i>v</i></dt>
  29. <dd>Pointer to the vorbis_dsp_state for the stream.</dd>
  30. <dt><i>granulepos</i></dt>
  31. <dd>The granule position.</dd>
  32. </dl>
  33. <h3>Return Values</h3>
  34. <blockquote>
  35. <li>
  36. The time (in seconds) corresponding to the granulepos.</li>
  37. <li>-1 if the given granulepos is negative</li>
  38. </blockquote>
  39. <p>
  40. <br><br>
  41. <hr noshade>
  42. <table border=0 width=100%>
  43. <tr valign=top>
  44. <td><p class=tiny>copyright &copy; 2010 Xiph.Org</p></td>
  45. <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/index.html">Ogg Vorbis</a></p></td>
  46. </tr><tr>
  47. <td><p class=tiny>libvorbis documentation</p></td>
  48. <td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>
  49. </tr>
  50. </table>
  51. </body>
  52. </html>