Blame doc/libvorbis/vorbis_analysis_buffer.html

Packit 06404a
<html>
Packit 06404a
Packit 06404a
<head>
Packit 06404a
<title>libvorbis - function - vorbis_analysis_buffer</title>
Packit 06404a
<link rel=stylesheet href="style.css" type="text/css">
Packit 06404a
</head>
Packit 06404a
Packit 06404a
<body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
Packit 06404a
Packit 06404a
Packit 06404a

libvorbis documentation

Packit 06404a

libvorbis version 1.3.2 - 20101101

Packit 06404a
Packit 06404a
Packit 06404a
Packit 06404a

vorbis_analysis_buffer

Packit 06404a
Packit 06404a

declared in "vorbis/codec.h";

Packit 06404a
Packit 06404a

This fuction requests a buffer array for delivering audio to the

Packit 06404a
encoder for compression.

Packit 06404a
Packit 06404a

The Vorbis encoder expects the caller to write audio data as

Packit 06404a
non-interleaved floating point samples into its internal buffers.
Packit 06404a

Packit 06404a

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

Packit 06404a
Packit 06404a
Packit 06404a
Packit 06404a
	
Packit 06404a
Packit 06404a
extern float  **vorbis_analysis_buffer(vorbis_dsp_state *v,int vals);
Packit 06404a
Packit 06404a
	
Packit 06404a
Packit 06404a
Packit 06404a
Packit 06404a

Parameters

Packit 06404a
Packit 06404a
v
Packit 06404a
Pointer to the vorbis_dsp_state representing the encoder.
Packit 06404a
vals
Packit 06404a
Number of samples to provide space for in the returned buffer. 1024 is a reasonable choice.
Packit 06404a
Packit 06404a
Packit 06404a
Packit 06404a

Return Values

Packit 06404a

Returns an array of floating point buffers which can accept data.

Packit 06404a
A (**float) where the first index is the channel, and the second is
Packit 06404a
the sample index.

Packit 06404a
Packit 06404a


Packit 06404a

Packit 06404a
Packit 06404a
Packit 06404a

copyright © 2010 Xiph.Org

Packit 06404a

Ogg Vorbis

Packit 06404a
Packit 06404a

libvorbis documentation

Packit 06404a

libvorbis version 1.3.2 - 20101101

Packit 06404a
Packit 06404a
Packit 06404a
Packit 06404a
Packit 06404a
</body>
Packit 06404a
Packit 06404a
</html>