4 <title>vorbisfile - datatype - OggVorbis_File</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.25 - 20000615</p></td>
16 <h1>OggVorbis_File</h1>
18 <p><i>declared in "vorbis/vorbisfile.h"</i></p>
21 The OggVorbis_File structure defines an Ogg Vorbis file.
23 This structure is used in all vorbisfile routines. Before it can be used, it must be initialized by <a href="ov_open.html">ov_open</a> or <a href="ov_open_callbacks.html">ov_open_callbacks</a>.
25 After use, the OggVorbis_File structure must be deallocated with a call to <a href="ov_clear.html">ov_clear()</a>.
\r
26 <p>Once a file or data source is passed to libvorbisfile, it is owned by vorbisfile. The file should not be used by any other applications or functions outside the Vorbisfile API.
28 <table border=0 width=100% color=black cellspacing=0 cellpadding=7>
31 <pre><b>typedef struct {
32 void *datasource; /* Pointer to a FILE *, etc. */
38 /* If the FILE handle isn't seekable (eg, a pipe), only the current
48 /* Decoding working state local storage */
51 long current_serialno;
57 ogg_stream_state os; /* take physical pages, weld into a logical
59 vorbis_dsp_state vd; /* central working state for the packet->PCM decoder */
60 vorbis_block vb; /* local working space for packet->PCM decode */
62 <a href="ov_callbacks.html">ov_callbacks</a> callbacks;
64 } OggVorbis_File;</b></pre>
69 <h3>Relevant Struct Members</h3>
71 <dt><i>datasource</i></dt>
72 <dd>Pointer to file or other ogg source.</dd>
73 <dt><i>seekable</i></dt>
74 <dd>Read-only int indicating whether file is seekable, i.e., physical file is seekable, a pipe isn't.</dd>
76 <dd>Read-only int indicating the number of logical bitstreams within the physical bitstream.</dd>
\r
77 <dt><i>ov_callbacks</i></dt>
\r
78 <dd>Collection of file manipulation routines to be used on this data source.</dd>
83 <p>If your system's <tt><sys/types.h></tt> does not
84 define <tt>int64_t,</tt> you will need to define this as a 64-bit type
85 inside your system's project file/Makefile, etc. On win32, for example,
86 this should be defined as <tt>__int64</tt>. On the Unix platform, these
87 are usually defined properly in the system header files.
93 <table border=0 width=100%>
95 <td><p class=tiny>copyright © 2000 vorbis team</p></td>
96 <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>
98 <td><p class=tiny>vorbisfile documentation</p></td>
99 <td align=right><p class=tiny>vorbisfile version 1.25 - 20000615</p></td>