4 <title>Vorbisfile - function - ov_bitrate</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>Vorbisfile documentation</p></td>
12 <td align=right><p class=tiny>vorbisfile version 1.68 - 20030307</p></td>
18 <p><i>declared in "vorbis/vorbisfile.h";</i></p>
20 <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.
21 <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.
25 <table border=0 color=black cellspacing=0 cellpadding=7>
29 long ov_bitrate(OggVorbis_File *vf,int i);
38 <dd>A pointer to the OggVorbis_File structure--this is used for ALL the externally visible libvorbisfile
41 <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>
45 <h3>Return Values</h3>
47 <li>OV_EINVAL indicates that an invalid argument value was submitted or that the stream represented by <tt>vf</tt> is not open.</li>
48 <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.
49 <li><i>n</i> indicates the bitrate for the given logical bitstream or the entire
50 physical bitstream. If the file is open for random (seekable) access, it will
51 find the *actual* average bitrate. If the file is streaming (nonseekable), it
52 returns the nominal bitrate (if set) or else the average of the
53 upper/lower bounds (if set).</li>
60 <table border=0 width=100%>
62 <td><p class=tiny>copyright © 2003 Xiph.org</p></td>
63 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/">Ogg Vorbis</a></p></td>
65 <td><p class=tiny>Vorbisfile documentation</p></td>
66 <td align=right><p class=tiny>vorbisfile version 1.68 - 20030307</p></td>