OSDN Git Service

[DTXV] #26010 #PAN EL (WAV番号=ELの#PAN)を#PANELと誤認識しないよう修正。
[dtxmania/dtxmania.git] / @OggVorbisソリューション / libvorbis-1.3.2 / doc / vorbisenc / vorbis_encode_setup_managed.html
1 <html>
2
3 <head>
4 <title>libvorbisenc - function - vorbis_encode_setup_managed</title>
5 <link rel=stylesheet href="style.css" type="text/css">
6 </head>
7
8 <body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
9 <table border=0 width=100%>
10 <tr>
11 <td><p class=tiny>libvorbisenc documentation</p></td>
12 <td align=right><p class=tiny>libvorbisenc version 1.3.2 - 20101101</p></td>
13 </tr>
14 </table>
15
16 <h1>vorbis_encode_setup_managed</h1>
17
18 <p><i>declared in "vorbis/vorbisenc.h";</i></p>
19
20 <p>This function performs step-one of a three-step bitrate-managed
21 encode setup.  It functions similarly to the one-step setup performed
22 by <a href="vorbis_encode_init.html">vorbis_encode_init()</a> but
23 allows an application to make further encode setup tweaks using <a
24 href="vorbis_encode_ctl.html">vorbis_encode_ctl()</a> before finally
25 calling <a
26 href="vorbis_encode_setup_init.html">vorbis_encode_setup_init()</a> to
27 complete the setup process.
28
29 <p>Before this function is called, the <a
30 href="../libvorbis/vorbis_info.html">vorbis_info</a> struct should be initialized
31 by using vorbis_info_init() from the libvorbis API.  After encoding,
32 vorbis_info_clear should be called.
33
34 <p>The max_bitrate, nominal_bitrate, and min_bitrate settings are used
35 to set constraints for the encoded file.  This function uses these
36 settings to select the appropriate encoding mode and set it up.
37 <p>
38 <br><br>
39 <table border=0 color=black cellspacing=0 cellpadding=7>
40 <tr bgcolor=#cccccc>
41         <td>
42 <pre><b>
43 extern int vorbis_encode_init(<a href="../libvorbis/vorbis_info.html">vorbis_info</a> *vi,
44                               long channels,
45                               long rate,
46                               
47                               long max_bitrate,
48                               long nominal_bitrate,
49                               long min_bitrate);
50
51 </b></pre>
52         </td>
53 </tr>
54 </table>
55
56 <h3>Parameters</h3>
57 <dl>
58 <dt><i>vi</i></dt>
59 <dd>Pointer to an initialized <a href="../libvorbis/vorbis_info.html">vorbis_info</a> struct.</dd>
60 <dt><i>channels</i></dt>
61 <dd>The number of channels to be encoded.</dd>
62 <dt><i>rate</i></dt>
63 <dd>The sampling rate of the source audio.</dd>
64 <dt><i>max_bitrate</i></dt>
65 <dd>Desired maximum bitrate (limit). -1 indicates unset.</dd>
66 <dt><i>nominal_bitrate</i></dt>
67 <dd>Desired average, or central, bitrate. -1 indicates unset.</dd>
68 <dt><i>min_bitrate</i></dt>
69 <dd>Desired minimum bitrate. -1 indicates unset.</dd>
70 </dl>
71
72
73 <h3>Return Values</h3>
74 <blockquote>
75 <li>
76 0 for success</li>
77
78 <li>less than zero for failure:</li>
79 <ul>
80 <li>OV_EFAULT - Internal logic fault; indicates a bug or heap/stack corruption.</li>
81 <li>OV_EINVAL - Invalid setup request, eg, out of range argument. </li>
82 <li>OV_EIMPL  - Unimplemented mode; unable to comply with bitrate request.</li>
83 </ul>
84 </blockquote>
85 <p>
86
87 <br><br>
88 <hr noshade>
89 <table border=0 width=100%>
90 <tr valign=top>
91 <td><p class=tiny>copyright &copy; 2000-2010 Xiph.Org</p></td>
92 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/index.html">Ogg Vorbis</a></p></td>
93 </tr><tr>
94 <td><p class=tiny>libvorbisenc documentation</p></td>
95 <td align=right><p class=tiny>libvorbisenc version 1.3.2 - 20101101</p></td>
96 </tr>
97 </table>
98
99
100 </body>
101
102 </html>