Chris@1: Chris@1: Chris@1: Chris@1: libogg - function - ogg_sync_wrote Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:

libogg documentation

libogg release 1.3.0 - 20110804

Chris@1: Chris@1:

ogg_sync_wrote

Chris@1: Chris@1:

declared in "ogg/ogg.h";

Chris@1: Chris@1:

This function is used to tell the ogg_sync_state struct how many bytes we wrote into the buffer. Chris@1: Chris@1:

Chris@1: The general proceedure is to request a pointer into an internal Chris@1: ogg_sync_state buffer by calling Chris@1: ogg_sync_buffer(). The buffer Chris@1: is then filled up to the requested size with new input, and Chris@1: ogg_sync_wrote() is called to advance the fill pointer by however Chris@1: much data was actually available.

Chris@1: Chris@1:
Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:
Chris@1:

Chris@1: int ogg_sync_wrote(ogg_sync_state *oy, long bytes);
Chris@1: 
Chris@1:
Chris@1: Chris@1:

Parameters

Chris@1:
Chris@1:
oy
Chris@1:
Pointer to a previously declared ogg_sync_state struct.
Chris@1:
bytes
Chris@1:
Number of bytes of new data written.
Chris@1:
Chris@1: Chris@1: Chris@1:

Return Values

Chris@1:
Chris@1:
  • -1 if the number of bytes written overflows the internal storage of the ogg_sync_state struct or an internal error occurred. Chris@1:
  • Chris@1: 0 in all other cases.
  • Chris@1:
    Chris@1: Chris@1: Chris@1:

    Chris@1:
    Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:

    copyright © 2000-2011 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.3.0 - 20110804

    Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: