This fuction examines the available uncompressed data and tries to
cannam@86: break it into appropriate sized blocks. It should be called in a loop
cannam@86: after adding new data with vorbis_analysis_buffer()/vorbis_analysis_wrote()
cannam@86: until it returns zero (need more data) or an negative value (error).
cannam@86:
cannam@86:
cannam@86: Each block returned should be passed to vorbis_analysis() for transform
cannam@86: and coding.
cannam@86:
cannam@86:
cannam@86:
cannam@86:
cannam@86:
cannam@86:
cannam@86: extern int vorbis_analysis_blockout(vorbis_dsp_state *v,vorbis_block *vb);
cannam@86:
cannam@86:
cannam@86:
cannam@86:
cannam@86:
cannam@86:
Parameters
cannam@86:
cannam@86:
v
cannam@86:
Pointer to the vorbis_dsp_state representing the encoder.
cannam@86:
vb
cannam@86:
Pointer to a previously initialized vorbis_block object to hold the
cannam@86: returned data.
cannam@86:
cannam@86:
cannam@86:
cannam@86:
Return Values
cannam@86:
cannam@86:
1 for success when more blocks are available.
cannam@86:
0 for success when this is the last block 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.