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