libogg documentation |
libogg release 1.3.2 - 20140527 |
declared in "ogg/ogg.h";
This function is used to tell the ogg_sync_state struct how many bytes we wrote into the buffer.
The general proceedure is to request a pointer into an internal ogg_sync_state buffer by calling ogg_sync_buffer(). The buffer is then filled up to the requested size with new input, and ogg_sync_wrote() is called to advance the fill pointer by however much data was actually available.
int ogg_sync_wrote(ogg_sync_state *oy, long bytes); |
-1 if the number of bytes written overflows the internal storage of the ogg_sync_state struct or an internal error occurred. 0 in all other cases.
copyright © 2000-2014 Xiph.Org |
|
libogg documentation |
libogg release 1.3.2 - 20140527 |