4 <title>Vorbisfile - function - ov_read_float</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>Vorbisfile documentation</p></td>
12 <td align=right><p class=tiny>vorbisfile version 1.68 - 20030307</p></td>
16 <h1>ov_read_float()</h1>
18 <p><i>declared in "vorbis/vorbisfile.h";</i></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.
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>.
29 <table border=0 color=black cellspacing=0 cellpadding=7>
33 long ov_read_float(<a href="OggVorbis_File.html">OggVorbis_File</a> *vf, float ***pcm_channels, int samples, int *bitstream);
42 <dd>A pointer to the OggVorbis_File structure--this is used for ALL the externally visible vorbisfile
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>
54 <h3>Return Values</h3>
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>
62 <dd>indicates that an invalid stream section was supplied to
63 libvorbisfile, or the requested link is corrupt.</dd>
65 <dd>indicates EOF</dd>
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>.
74 <p><b>Typical usage:</b>
77 samples_read = ov_read_float(&vf,pcm, 1024, &current_section)</tt>
80 This decodes up to 1024 float samples.
86 <table border=0 width=100%>
88 <td><p class=tiny>copyright © 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>
91 <td><p class=tiny>Vorbisfile documentation</p></td>
92 <td align=right><p class=tiny>vorbisfile version 1.68 - 20030307</p></td>