ov_bitrate.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <html>
  2. <head>
  3. <title>vorbisfile - function - ov_bitrate</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>vorbisfile documentation</p></td>
  10. <td align=right><p class=tiny>vorbisfile version 1.25 - 20000615</p></td>
  11. </tr>
  12. </table>
  13. <h1>ov_bitrate</h1>
  14. <p><i>declared in "vorbis/vorbisfile.h";</i></p>
  15. <p>This function returns the average bitrate for the specified logical bitstream. This may be different from the <a href=ov_info.html>ov_info->nominal_bitrate</a> value, as it is based on the actual average for this bitstream if the file is seekable.
  16. <p>Nonseekable files will return the nominal bitrate setting or the average of the upper and lower bounds, if any of these values are set.
  17. <p>
  18. <br><br>
  19. <table border=0 color=black cellspacing=0 cellpadding=7>
  20. <tr bgcolor=#cccccc>
  21. <td>
  22. <pre><b>
  23. long ov_bitrate(OggVorbis_File *vf,int i);
  24. </b></pre>
  25. </td>
  26. </tr>
  27. </table>
  28. <h3>Parameters</h3>
  29. <dl>
  30. <dt><i>vf</i></dt>
  31. <dd>A pointer to the OggVorbis_File structure--this is used for ALL the externally visible vorbisfile
  32. functions.</dd>
  33. <dt><i>i</i></dt>
  34. <dd>Link to the desired logical bitstream. For nonseekable files, this argument is ignored. To retrieve the bitrate for the entire bitstream, this parameter should be set to -1.</dd>
  35. </dl>
  36. <h3>Return Values</h3>
  37. <blockquote>
  38. <li>OV_EINVAL indicates that an invalid argument value was submitted.</li>
  39. <li>OV_FALSE means the call returned a 'false' status, which in this case most likely indicates that the file is nonseekable and the upper, lower, and nominal bitrates were unset.
  40. <li><i>n</i> indicates the bitrate for the given logical bitstream or the entire
  41. physical bitstream. If the file is open for random (seekable) access, it will
  42. find the *actual* average bitrate. If the file is streaming (nonseekable), it
  43. returns the nominal bitrate (if set) or else the average of the
  44. upper/lower bounds (if set).</li>
  45. </blockquote>
  46. <p>
  47. <br>
  48. <br><br>
  49. <hr noshade>
  50. <table border=0 width=100%>
  51. <tr valign=top>
  52. <td><p class=tiny>copyright &copy; 2000 vorbis team</p></td>
  53. <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/index.html">Ogg Vorbis</a><br><a href="mailto:team@vorbis.org">team@vorbis.org</a></p></td>
  54. </tr><tr>
  55. <td><p class=tiny>vorbisfile documentation</p></td>
  56. <td align=right><p class=tiny>vorbisfile version 1.25 - 20000615</p></td>
  57. </tr>
  58. </table>
  59. </body>
  60. </html>