libogg documentation

libogg release 1.2.0 - 20100325


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);


Pointer to a previously declared ogg_sync_state struct.
Number of bytes of new data written.

Return Values

  • -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-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325