4 <title>libogg - function - ogg_stream_init</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>libogg documentation</p></td>
12 <td align=right><p class=tiny>libogg release 1.0 - 20000615</p></td>
16 <h1>ogg_stream_init</h1>
18 <p><i>declared in "ogg/ogg.h";</i></p>
20 <p>This function is used to initialize an <a href="ogg_sync_state.html">ogg_stream_state</a> struct and allocates appropriate memory in preparation for encoding or decoding.
21 <p>It also assigns the stream a given serial number.
23 <table border=0 color=black cellspacing=0 cellpadding=7>
27 int ogg_stream_init(<a href="ogg_stream_state.html">ogg_stream_state</a> *os,int serialno);
36 <dd>Pointer to the ogg_stream_state struct that we will be initializing.</dd>
37 <dt><i>serialno</i></dt>
38 <dd>Serial number that we will attach to this stream.</dd>
42 <h3>Return Values</h3>
47 -1 if unsuccessful. If this fails, the ogg_stream_state was not properly declared before calling this function.</li>
53 <table border=0 width=100%>
55 <td><p class=tiny>copyright © 2000 xiph.org</p></td>
56 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/index.html">Ogg Vorbis</a><br><a href="mailto:team@xiph.org">team@xiph.org</a></p></td>
58 <td><p class=tiny>libogg documentation</p></td>
59 <td align=right><p class=tiny>libogg release 1.0 - 20000615</p></td>