VirtualBox

source: vbox/trunk/src/libs/libogg-1.3.5/doc/libogg/ogg_sync_check.html@ 102797

Last change on this file since 102797 was 96360, checked in by vboxsync, 2 years ago

libogg, libvorbis: export to OSE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1<html>
2
3<head>
4<title>libogg - function - ogg_sync_check</title>
5<link rel=stylesheet href="style.css" type="text/css">
6</head>
7
8<body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
9<table border=0 width=100%>
10<tr>
11<td><p class=tiny>libogg documentation</p></td>
12<td align=right><p class=tiny>libogg release 1.3.5 - 20210603</p></td>
13</tr>
14</table>
15
16<h1>ogg_sync_check</h1>
17
18<p><i>declared in "ogg/ogg.h";</i></p>
19
20<p>This function is used to check the error or readiness condition of an <a href="ogg_sync_state.html">ogg_sync_state</a> structure.
21<p>It is safe practice to ignore unrecoverable errors (such as an internal error caused by a malloc() failure) returned by ogg stream synchronization calls. Should an
22internal error occur, the <a href="ogg_sync_state.html">ogg_sync_state</a> structure will be cleared (equivalent to a
23call to
24<a href="ogg_sync_clear.html">ogg_sync_clear</a>) and subsequent calls
25using this <a href="ogg_sync_state.html">ogg_sync_state</a> will be
26noops. Error detection is then handled via a single call to
27ogg_sync_check at the end of the operational block. </p>
28
29<br><br>
30<table border=0 color=black cellspacing=0 cellpadding=7>
31<tr bgcolor=#cccccc>
32 <td>
33<pre><b>
34int ogg_sync_check(<a href="ogg_sync_state.html">ogg_sync_state</a> *oy);
35</b></pre>
36 </td>
37</tr>
38</table>
39
40<h3>Parameters</h3>
41<dl>
42<dt><i>oy</i></dt>
43<dd>Pointer to a previously declared <a href="ogg_sync_state.html">ogg_sync_state</a> struct.</dd>
44</dl>
45
46
47<h3>Return Values</h3>
48<blockquote>
49<li>
500 is returned if the <a href="ogg_sync_state.html">ogg_sync_state</a> structure is initialized and ready.</li>
51<li>
52nonzero is returned if the structure was never initialized, or if an unrecoverable internal error occurred in a previous call using the passed in <a href="ogg_sync_state.html">ogg_sync_state</a> struct.</li>
53</blockquote>
54<p>
55
56<br><br>
57<hr noshade>
58<table border=0 width=100%>
59<tr valign=top>
60<td><p class=tiny>copyright &copy; 2000-2021 Xiph.Org Foundation</p></td>
61<td align=right><p class=tiny><a href="http://www.xiph.org/ogg/">Ogg Container Format</a></p></td>
62</tr><tr>
63<td><p class=tiny>libogg documentation</p></td>
64<td align=right><p class=tiny>libogg release 1.3.5 - 20210603</p></td>
65</tr>
66</table>
67
68
69</body>
70
71</html>
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette