4 <title>libvorbisenc - function - vorbis_encode_init_vbr
</title>
5 <link rel=stylesheet
href=
"style.css" type=
"text/css">
8 <body bgcolor=white text=black
link=
"#5555ff" alink=
"#5555ff" vlink=
"#5555ff">
9 <table border=
0 width=
100%
>
11 <td><p class=tiny
>libvorbisenc documentation
</p></td>
12 <td align=right
><p class=tiny
>libvorbisenc version
1.3.2 -
20101101</p></td>
16 <h1>vorbis_encode_init_vbr
</h1>
18 <p><i>declared in
"vorbis/vorbisenc.h";
</i></p>
20 <p>This is the primary function within libvorbisenc for setting up variable bitrate (
"quality" based) modes.
21 <p>Before this function is called, the
<a href=
"../libvorbis/vorbis_info.html">vorbis_info
</a> struct should be initialized by using vorbis_info_init() from the libvorbis API. After encoding, vorbis_info_clear should be called.
24 <table border=
0 color=black cellspacing=
0 cellpadding=
7>
28 extern int vorbis_encode_init_vbr(
<a href=
"../libvorbis/vorbis_info.html">vorbis_info
</a> *vi,
42 <dd>Pointer to an initialized
<a href=
"../libvorbis/vorbis_info.html">vorbis_info
</a> struct.
</dd>
43 <dt><i>channels
</i></dt>
44 <dd>The number of channels to be encoded.
</dd>
46 <dd>The sampling rate of the source audio.
</dd>
47 <dt><i>base_quality
</i></dt>
48 <dd>Desired quality level, currently from -
0.1 to
1.0 (lo to hi).
</dd>
52 <h3>Return Values
</h3>
57 <li>less than zero for failure:
</li>
59 <li>OV_EFAULT - Internal logic fault; indicates a bug or heap/stack corruption.
</li>
60 <li>OV_EINVAL - Invalid setup request, eg, out of range argument.
</li>
61 <li>OV_EIMPL - Unimplemented mode; unable to comply with quality level request.
</li>
68 <table border=
0 width=
100%
>
70 <td><p class=tiny
>copyright
© 2000-
2010 Xiph.Org
</p></td>
71 <td align=right
><p class=tiny
><a href=
"http://www.xiph.org/ogg/vorbis/index.html">Ogg Vorbis
</a></p></td>
73 <td><p class=tiny
>libvorbisenc documentation
</p></td>
74 <td align=right
><p class=tiny
>libvorbisenc version
1.3.2 -
20101101</p></td>