This function tells the encoder new data is available for compression.
Chris@1: Call this after writing new audio into the buffer array returned by
Chris@1: vorbis_analysis_buffer().
Chris@1:
Chris@1:
Chris@1:
Chris@1: Call with the vals parameter set to zero to signal the end
Chris@1: of the input data.
Chris@1:
Chris@1:
Chris@1:
Chris@1:
Chris@1:
Chris@1:
Chris@1: extern int vorbis_analysis_wrote(vorbis_dsp_state *v,int vals);
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:
vals
Chris@1:
Number of samples successfully written. This must be less than
Chris@1: or equal to the value passed to vorbis_analysis_buffer(). A value
Chris@1: of zero means all input data has been provided and the compressed
Chris@1: stream should be finalized.
Chris@1:
Chris@1:
Chris@1:
Chris@1:
Return Values
Chris@1:
Chris@1:
0 for success
Chris@1:
negative values for failure:
Chris@1:
Chris@1:
OV_EINVAL - Invalid request; e.g. vals overflows the allocated space.
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.