Writing with OggzHungry callbacks

An OggzHungry callback will:

Once you have set such a callback with oggz_write_set_hungry_callback(), simply call oggz_write() or oggz_write_output() repeatedly, and Oggz will call your callback to provide packets when it is hungry.

This process is illustrated in the following diagram:

hungry.png

The following example code generates a stream of ten packets, each containing a single byte ('A', 'B', ... , 'J'):


Generated on Fri Jul 4 18:32:30 2008 for liboggz by  doxygen 1.5.3