VirtualBox

source: vbox/trunk/src/libs/libvorbis-1.3.7/doc/libvorbis/vorbis_analysis_buffer.html

最後變更 在這個檔案是 96468,由 vboxsync 提交於 3 年 前

libs/libvorbis-1.3.7: Re-exporting, hopefully this time everything is there. bugref:10275

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.1 KB
 
1<html>
2
3<head>
4<title>libvorbis - function - vorbis_analysis_buffer</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>libvorbis documentation</p></td>
12<td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>
13</tr>
14</table>
15
16<h1>vorbis_analysis_buffer</h1>
17
18<p><i>declared in "vorbis/codec.h";</i></p>
19
20<p>This fuction requests a buffer array for delivering audio to the
21encoder for compression.</p>
22
23<p>The Vorbis encoder expects the caller to write audio data as
24non-interleaved floating point samples into its internal buffers.
25</p>
26<p>
27The general procedure is to call this function with the number of samples
28you have available. The encoder will arrange for that much internal storage
29and return an array of buffer pointers, one for each channel of audio.
30The caller must then write the audio samples into those buffers, as
31float values, and finally call vorbis_analysis_wrote() to tell the
32encoder the data is available for analysis.
33</p>
34
35<table border=0 color=black cellspacing=0 cellpadding=7>
36<tr bgcolor=#cccccc>
37 <td>
38<pre><b>
39extern float **vorbis_analysis_buffer(vorbis_dsp_state *v,int vals);
40</b></pre>
41 </td>
42</tr>
43</table>
44
45<h3>Parameters</h3>
46<dl>
47<dt><i>v</i></dt>
48<dd>Pointer to the vorbis_dsp_state representing the encoder.</dd>
49<dt><i>vals</i></dt>
50<dd>Number of samples to provide space for in the returned buffer. 1024 is a reasonable choice.</dd>
51</dl>
52
53
54<h3>Return Values</h3>
55<p>Returns an array of floating point buffers which can accept data.
56A (**float) where the first index is the channel, and the second is
57the sample index.<p>
58
59<br><br>
60<hr noshade>
61<table border=0 width=100%>
62<tr valign=top>
63<td><p class=tiny>copyright &copy; 2010 Xiph.Org</p></td>
64<td align=right><p class=tiny><a href="https://xiph.org/vorbis/">Ogg Vorbis</a></p></td>
65</tr><tr>
66<td><p class=tiny>libvorbis documentation</p></td>
67<td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>
68</tr>
69</table>
70
71
72</body>
73
74</html>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette