cannam@86: cannam@86: cannam@86: cannam@86: libvorbis - function - vorbis_analysis_buffer cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86:

libvorbis documentation

libvorbis version 1.3.2 - 20101101

cannam@86: cannam@86:

vorbis_analysis_buffer

cannam@86: cannam@86:

declared in "vorbis/codec.h";

cannam@86: cannam@86:

This fuction requests a buffer array for delivering audio to the cannam@86: encoder for compression.

cannam@86: cannam@86:

The Vorbis encoder expects the caller to write audio data as cannam@86: non-interleaved floating point samples into its internal buffers. cannam@86:

cannam@86:

cannam@86: The general procedure is to call this function with the number of samples cannam@86: you have available. The encoder will arrange for that much internal storage cannam@86: and return an array of buffer pointers, one for each channel of audio. cannam@86: The caller must then write the audio samples into those buffers, as cannam@86: float values, and finally call vorbis_analysis_wrote() to tell the cannam@86: encoder the data is available for analysis. cannam@86:

cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86:
cannam@86:

cannam@86: extern float  **vorbis_analysis_buffer(vorbis_dsp_state *v,int vals);
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 to provide space for in the returned buffer. 1024 is a reasonable choice.
cannam@86:
cannam@86: cannam@86: cannam@86:

Return Values

cannam@86:

Returns an array of floating point buffers which can accept data. cannam@86: A (**float) where the first index is the channel, and the second is cannam@86: the sample index.

cannam@86: cannam@86:

cannam@86:


cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86:

copyright © 2010 Xiph.Org

Ogg Vorbis

libvorbis documentation

libvorbis version 1.3.2 - 20101101

cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: