12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <html>
- <head>
- <title>vorbisfile - datatype - ov_callbacks</title>
- <link rel=stylesheet href="style.css" type="text/css">
- </head>
- <body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
- <table border=0 width=100%>
- <tr>
- <td><p class=tiny>vorbisfile documentation</p></td>
- <td align=right><p class=tiny>vorbisfile version 1.25 - 20000615</p></td>
- </tr>
- </table>
- <h1>ov_callbacks</h1>
- <p><i>declared in "vorbis/codec.h"</i></p>
- <p>
- The ov_callbacks structure contains file manipulation function prototypes necessary for opening, closing, seeking, and location.
- <p>
- The ov_callbacks structure does not need to be user-defined if you are working with a standard file. The typical <a href="ov_open.html">ov_open()</a> call will fill ov_callbacks for you. However, ov_callbacks should be defined if you are using other data sources. In this situation, use <a href="ov_open_callbacks.html">ov_open_callbacks()</a> instead of <a href="ov_open.html">ov_open()</a>.
- <p>
- <table border=0 width=100% color=black cellspacing=0 cellpadding=7>
- <tr bgcolor=#cccccc>
- <td>
- <pre><b>typedef struct {
- size_t (*read_func) (void *ptr, size_t size, size_t nmemb, void *datasource);
- int (*seek_func) (void *datasource, int64_t offset, int whence);
- int (*close_func) (void *datasource);
- long (*tell_func) (void *datasource);
- } ov_callbacks;</b></pre>
- </td>
- </tr>
- </table>
- <h3>Relevant Struct Members</h3>
- <dl>
- <dt><i>read_func</i></dt>
- <dd>Pointer to custom data reading function.</dd>
- <dt><i>seek_func</i></dt>
- <dd>Pointer to custom data seeking function.</dd>
- <dt><i>close_func</i></dt>
- <dd>Pointer to custom data source closure function.</dd>
- <dt><i>tell_func</i></dt>
- <dd>Pointer to custom data location function.</dd>
- </dl>
- <br><br>
- <hr noshade>
- <table border=0 width=100%>
- <tr valign=top>
- <td><p class=tiny>copyright © 2000 vorbis team</p></td>
- <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>
- </tr><tr>
- <td><p class=tiny>vorbisfile documentation</p></td>
- <td align=right><p class=tiny>vorbisfile version 1.25 - 20000615</p></td>
- </tr>
- </table>
- </body>
- </html>
|