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