This function returns the next available completed packet from the
Chris@1: bitrate management engine. It should be called in a loop after any call
Chris@1: to vorbis_bitrate_addblock() until it returns either 0 (more data needed)
Chris@1: or a negative value (error).
Chris@1:
Chris@1:
Chris@1:
Chris@1: The data returned in the ogg_packet structure can be copied to the
Chris@1: final compressed output stream.
Chris@1:
Chris@1:
Chris@1:
Chris@1:
Chris@1:
Chris@1:
Chris@1: extern int vorbis_bitrate_flushpacket(vorbis_dsp_state *vd,
Chris@1: ogg_packet *op);
Chris@1:
Chris@1:
Chris@1:
Chris@1:
Chris@1:
Chris@1:
Parameters
Chris@1:
Chris@1:
vd
Chris@1:
Pointer to the vorbis_dsp_state represending the encoder.
Chris@1:
op
Chris@1:
Pointer to an ogg_packet to be filled out with the compressed data.
Chris@1:
Chris@1:
Chris@1:
Chris@1:
Return Values
Chris@1:
Chris@1:
1 for success when more packets are available.
Chris@1:
0 for success when this is the last packet available from the current input.
Chris@1:
negative values for failure:
Chris@1:
Chris@1:
OV_EINVAL - Invalid parameters.
Chris@1:
OV_EFAULT - Internal fault; indicates a bug or memory corruption.
Chris@1:
OV_EIMPL - Unimplemented; not supported by this version of the library.