Diff of /doc/vorbisfile/chainingexample.html [ed1f1f] .. [d865bb]  Maximize  Restore

Switch to unified view

a/doc/vorbisfile/chainingexample.html b/doc/vorbisfile/chainingexample.html
...
...
7
7
8
<body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
8
<body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
9
<table border=0 width=100%>
9
<table border=0 width=100%>
10
<tr>
10
<tr>
11
<td><p class=tiny>Vorbisfile documentation</p></td>
11
<td><p class=tiny>Vorbisfile documentation</p></td>
12
<td align=right><p class=tiny>vorbisfile version 1.68 - 20030307</p></td>
12
<td align=right><p class=tiny>vorbisfile version 1.2.0 - 20070723</p></td>
13
</tr>
13
</tr>
14
</table>
14
</table>
15
15
16
<h1>Chaining Example Code</h1>
16
<h1>Chaining Example Code</h1>
17
17
...
...
48
</b></pre>
48
</b></pre>
49
        </td>
49
        </td>
50
</tr>
50
</tr>
51
</table>
51
</table>
52
52
53
<p><a href="ov_open.html">ov_open()</a> must be
53
<p>This example takes its input on stdin which is in 'text' mode by default under Windows; this will corrupt the input data unless set to binary mode.  This applies only to Windows.
54
called to initialize the <a href="OggVorbis_File.html">OggVorbis_File</a> structure with default values.  
54
<br><br>
55
<a href="ov_open.html">ov_open()</a> also checks to ensure that we're reading Vorbis format and not something else.
55
<table border=0 width=100% color=black cellspacing=0 cellpadding=7>
56
<tr bgcolor=#cccccc>
57
        <td>
58
<pre><b>
59
#ifdef _WIN32 /* We need to set stdin to binary mode under Windows */
60
  _setmode( _fileno( stdin ), _O_BINARY );
61
#endif
62
</b></pre>
63
        </td>
64
</tr>
65
</table>
66
67
<p>We call <a href="ov_open_callbacks.html">ov_open_callbacks()</a> to
68
initialize the <a href="OggVorbis_File.html">OggVorbis_File</a>
69
structure.  <a href="ov_open_callbacks.html">ov_open_callbacks()</a>
70
also checks to ensure that we're reading Vorbis format and not
71
something else. The OV_CALLBACKS_NOCLOSE callbacks instruct
72
libvorbisfile not to close stdin later during cleanup.<p>
56
73
57
<br><br>
74
<br><br>
58
<table border=0 width=100% color=black cellspacing=0 cellpadding=7>
75
<table border=0 width=100% color=black cellspacing=0 cellpadding=7>
59
<tr bgcolor=#cccccc>
76
<tr bgcolor=#cccccc>
60
        <td>
77
        <td>
61
<pre><b>
78
<pre><b>
62
  if(ov_open(stdin,&amp;ov,NULL,-1)&gt;0){
79
  if(ov_open_callbacks(stdin,&ov,NULL,-1,OV_CALLBACKS_NOCLOSE)<0){
63
    printf("Could not open input as an OggVorbis file.\n\n");
80
    printf("Could not open input as an OggVorbis file.\n\n");
64
    exit(1);
81
    exit(1);
65
  }
82
  }
66
83
67
</b></pre>
84
</b></pre>
...
...
143
160
144
<br><br>
161
<br><br>
145
<hr noshade>
162
<hr noshade>
146
<table border=0 width=100%>
163
<table border=0 width=100%>
147
<tr valign=top>
164
<tr valign=top>
148
<td><p class=tiny>copyright &copy; 2004 Xiph.org</p></td>
165
<td><p class=tiny>copyright &copy; 2007 Xiph.org</p></td>
149
<td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/">Ogg Vorbis</a><br><a href="mailto:team@vorbis.org">team@vorbis.org</a></p></td>
166
<td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/">Ogg Vorbis</a><br><a href="mailto:team@vorbis.org">team@vorbis.org</a></p></td>
150
</tr><tr>
167
</tr><tr>
151
<td><p class=tiny>Vorbisfile documentation</p></td>
168
<td><p class=tiny>Vorbisfile documentation</p></td>
152
<td align=right><p class=tiny>vorbisfile version 1.68 - 20030307</p></td>
169
<td align=right><p class=tiny>vorbisfile version 1.2.0 - 20070723</p></td>
153
</tr>
170
</tr>
154
</table>
171
</table>
155
172
156
</body>
173
</body>
157
174

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks