vorbis_analysis_wrote.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <html>
  2. <head>
  3. <title>libvorbis - function - vorbis_analysis_wrote</title>
  4. <link rel=stylesheet href="style.css" type="text/css">
  5. </head>
  6. <body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
  7. <table border=0 width=100%>
  8. <tr>
  9. <td><p class=tiny>libvorbis documentation</p></td>
  10. <td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>
  11. </tr>
  12. </table>
  13. <h1>vorbis_analysis_wrote</h1>
  14. <p><i>declared in "vorbis/codec.h";</i></p>
  15. <p>This function tells the encoder new data is available for compression.
  16. Call this after writing new audio into the buffer array returned by
  17. vorbis_analysis_buffer().
  18. </p>
  19. <p>
  20. Call with the <i>vals</i> parameter set to zero to signal the end
  21. of the input data.
  22. </p>
  23. <table border=0 color=black cellspacing=0 cellpadding=7>
  24. <tr bgcolor=#cccccc>
  25. <td>
  26. <pre><b>
  27. extern int vorbis_analysis_wrote(vorbis_dsp_state *v,int vals);
  28. </b></pre>
  29. </td>
  30. </tr>
  31. </table>
  32. <h3>Parameters</h3>
  33. <dl>
  34. <dt><i>v</i></dt>
  35. <dd>Pointer to the vorbis_dsp_state representing the encoder.</dd>
  36. <dt><i>vals</i></dt>
  37. <dd>Number of samples successfully written. This must be less than
  38. or equal to the value passed to vorbis_analysis_buffer(). A value
  39. of zero means all input data has been provided and the compressed
  40. stream should be finalized.</dd>
  41. </dl>
  42. <h3>Return Values</h3>
  43. <ul>
  44. <li>0 for success</li>
  45. <li>negative values for failure:
  46. <ul>
  47. <li>OV_EINVAL - Invalid request; e.g. vals overflows the allocated space.</li>
  48. <li>OV_EFAULT - Internal fault; indicates a bug or memory corruption.</li>
  49. <li>OV_EIMPL - Unimplemented; not supported by this version of the library.</li>
  50. </ul>
  51. </li>
  52. </ul>
  53. <p>
  54. <br><br>
  55. <hr noshade>
  56. <table border=0 width=100%>
  57. <tr valign=top>
  58. <td><p class=tiny>copyright &copy; 2010 Xiph.Org</p></td>
  59. <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/index.html">Ogg Vorbis</a></p></td>
  60. </tr><tr>
  61. <td><p class=tiny>libvorbis documentation</p></td>
  62. <td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>
  63. </tr>
  64. </table>
  65. </body>
  66. </html>