4 <title>libvorbis - function - vorbis_bitrate_flushpacket</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_bitrate_flushpacket</h1>
18 <p><i>declared in "vorbis/codec.h";</i></p>
20 <p>This function returns the next available completed packet from the
21 bitrate management engine. It should be called in a loop after any call
22 to vorbis_bitrate_addblock() until it returns either 0 (more data needed)
23 or a negative value (error).
27 The data returned in the ogg_packet structure can be copied to the
28 final compressed output stream.
31 <table border=0 color=black cellspacing=0 cellpadding=7>
35 extern int vorbis_bitrate_flushpacket(vorbis_dsp_state *vd,
45 <dd>Pointer to the vorbis_dsp_state represending the encoder.</dd>
47 <dd>Pointer to an ogg_packet to be filled out with the compressed data.</dd>
51 <h3>Return Values</h3>
53 <li>1 for success when more packets are available.
54 <li>0 for success when this is the last packet available from the current input.</li>
55 <li>negative values for failure:
57 <li>OV_EINVAL - Invalid parameters.</li>
58 <li>OV_EFAULT - Internal fault; indicates a bug or memory corruption.</li>
59 <li>OV_EIMPL - Unimplemented; not supported by this version of the library.</li>
67 <table border=0 width=100%>
69 <td><p class=tiny>copyright © 2010 Xiph.Org</p></td>
70 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/index.html">Ogg Vorbis</a></p></td>
72 <td><p class=tiny>libvorbis documentation</p></td>
73 <td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>