Chris@1: Chris@1: Chris@1: Chris@1: libvorbis - function - vorbis_analysis_buffer Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:

libvorbis documentation

libvorbis version 1.3.2 - 20101101

Chris@1: Chris@1:

vorbis_analysis_buffer

Chris@1: Chris@1:

declared in "vorbis/codec.h";

Chris@1: Chris@1:

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

Chris@1: Chris@1:

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

Chris@1:

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

Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:
Chris@1:

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

Return Values

Chris@1:

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

Chris@1: Chris@1:

Chris@1:


Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:

copyright © 2010 Xiph.Org

Ogg Vorbis

libvorbis documentation

libvorbis version 1.3.2 - 20101101

Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: