]> git.jsancho.org Git - lugaru.git/blob - libvorbis-1.0.1/doc/vorbisfile/ov_read_float.html
Simplified web browser launching on Linux.
[lugaru.git] / libvorbis-1.0.1 / doc / vorbisfile / ov_read_float.html
1 <html>
2
3 <head>
4 <title>Vorbisfile - function - ov_read_float</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>Vorbisfile documentation</p></td>
12 <td align=right><p class=tiny>vorbisfile version 1.68 - 20030307</p></td>
13 </tr>
14 </table>
15
16 <h1>ov_read_float()</h1>
17
18 <p><i>declared in "vorbis/vorbisfile.h";</i></p>
19
20 <p>
21    This is the function used to decode a Vorbis file within a loop, but
22    returns samples in native float format instead of in integer formats.
23 </p><p>
24    For more information on how ov_read_float() deals with the complex issues 
25    of chaining, etc, refer to the documentation for <a href="ov_read.html">ov_read()</a>.
26 </p>
27
28 <br><br>
29 <table border=0 color=black cellspacing=0 cellpadding=7>
30 <tr bgcolor=#cccccc>
31         <td>
32 <pre><b>
33 long ov_read_float(<a href="OggVorbis_File.html">OggVorbis_File</a> *vf, float ***pcm_channels, int samples, int *bitstream);
34 </b></pre>
35         </td>
36 </tr>
37 </table>
38
39 <h3>Parameters</h3>
40 <dl>
41 <dt><i>vf</i></dt>
42 <dd>A pointer to the OggVorbis_File structure--this is used for ALL the externally visible vorbisfile
43 functions.</dd>
44 <dt><i>pcm_channels</i></dt>
45 <dd>A pointer to an output buffer.  The pointer will be set to the decoded output buffer.</dd>
46 <dt><i>samples</i></dt>
47 <dd>Maximum number of decoded samples to produce.</dd>
48 <dt><i>bitstream</i></dt>
49 <dt><i>bitstream</i></dt>
50 <dd>A pointer to the number of the current logical bitstream.</dd>
51 </dl>
52
53
54 <h3>Return Values</h3>
55 <blockquote>
56 <dl>
57 <dt>OV_HOLE</dt>
58   <dd>indicates there was an interruption in the data.
59       <br>(one of: garbage between pages, loss of sync followed by
60            recapture, or a corrupt page)</dd>
61 <dt>OV_EBADLINK</dt>
62   <dd>indicates that an invalid stream section was supplied to
63       libvorbisfile, or the requested link is corrupt.</dd>
64 <dt>0</dt>
65   <dd>indicates EOF</dd>
66 <dt><i>n</i></dt>
67   <dd>indicates actual number of samples read.  <tt>ov_read_float()</tt> will
68       decode at most one vorbis packet per invocation, so the value
69       returned will generally be less than <tt>length</tt>.
70 </dl>
71 </blockquote>
72
73 <h3>Notes</h3>
74 <p><b>Typical usage:</b>
75 <blockquote>
76 <tt>float **pcm;
77 samples_read = ov_read_float(&amp;vf,pcm, 1024, &amp;current_section)</tt>
78 </blockquote>
79
80 This decodes up to 1024 float samples.
81 </p>
82
83 <br>
84 <br><br>
85 <hr noshade>
86 <table border=0 width=100%>
87 <tr valign=top>
88 <td><p class=tiny>copyright &copy; 2002 vorbis team</p></td>
89 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/index.html">Ogg Vorbis</a><br><a href="mailto:team@vorbis.org">team@vorbis.org</a></p></td>
90 </tr><tr>
91 <td><p class=tiny>Vorbisfile documentation</p></td>
92 <td align=right><p class=tiny>vorbisfile version 1.68 - 20030307</p></td>
93 </tr>
94 </table>
95
96
97 </body>
98
99 </html>
100
101
102