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