4 <title>libvorbis - function - vorbis_analysis_wrote</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>libvorbis documentation</p></td>
12 <td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>
16 <h1>vorbis_analysis_wrote</h1>
18 <p><i>declared in "vorbis/codec.h";</i></p>
20 <p>This function tells the encoder new data is available for compression.
21 Call this after writing new audio into the buffer array returned by
22 vorbis_analysis_buffer().
26 Call with the <i>vals</i> parameter set to zero to signal the end
30 <table border=0 color=black cellspacing=0 cellpadding=7>
34 extern int vorbis_analysis_wrote(vorbis_dsp_state *v,int vals);
43 <dd>Pointer to the vorbis_dsp_state representing the encoder.</dd>
45 <dd>Number of samples successfully written. This must be less than
46 or equal to the value passed to vorbis_analysis_buffer(). A value
47 of zero means all input data has been provided and the compressed
48 stream should be finalized.</dd>
52 <h3>Return Values</h3>
54 <li>0 for success</li>
55 <li>negative values for failure:
57 <li>OV_EINVAL - Invalid request; e.g. vals overflows the allocated space.</li>
58 <li>OV_EFAULT - Internal fault; indicates a bug or memory corruption.</li>
59 <li>OV_EIMPL - Unimplemented; not supported by this version of the library.</li>
67 <table border=0 width=100%>
69 <td><p class=tiny>copyright © 2010 Xiph.Org</p></td>
70 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/index.html">Ogg Vorbis</a></p></td>
72 <td><p class=tiny>libvorbis documentation</p></td>
73 <td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>