You provide Ogg data to OGGZ with oggz_read() or oggz_read_input(), and independently process it in OggzReadPacket callbacks. It is possible to set a different callback per serialno (ie. for each logical bitstream in the Ogg bitstream - see the Ogg basics section for more detail).
See OGGZ Seek API for information on seeking on interleaved Ogg data.
Typedefs | |
typedef int(* | OggzReadPacket )(OGGZ *oggz, ogg_packet *op, long serialno, void *user_data) |
This is the signature of a callback which you must provide for Oggz to call whenever it finds a new packet in the Ogg stream associated with oggz. | |
Functions | |
int | oggz_set_read_callback (OGGZ *oggz, long serialno, OggzReadPacket read_packet, void *user_data) |
Set a callback for Oggz to call when a new Ogg packet is found in the stream. | |
long | oggz_read (OGGZ *oggz, long n) |
Read n bytes into oggz, calling any read callbacks on the fly. | |
long | oggz_read_input (OGGZ *oggz, unsigned char *buf, long n) |
Input data into oggz. |
|
This is the signature of a callback which you must provide for Oggz to call whenever it finds a new packet in the Ogg stream associated with oggz.
|
|
Read n bytes into oggz, calling any read callbacks on the fly.
|
|
Input data into oggz.
|
|
Set a callback for Oggz to call when a new Ogg packet is found in the stream.
|