You need to open the file with the OGGZ_AUTO flag set:
Oggz will silently parse known codec headers and associate metrics appropriately; if you attempt to seek before you have received all b_o_s pages, Oggz will not have had a chance to parse the codec headers and associate metrics. It is safe to seek once you have received a packet with b_o_s == 0; see the Ogg basics section for more details.
Functions | |
ogg_int64_t | oggz_tell_units (OGGZ *oggz) |
Query the current offset in milliseconds, or custom units as specified by a Metric function you have provided. | |
ogg_int64_t | oggz_seek_units (OGGZ *oggz, ogg_int64_t units, int whence) |
Seek to an offset in milliseconds, or custom units as specified by a Metric function you have provided. | |
off_t | oggz_tell (OGGZ *oggz) |
Query the file offset in bytes corresponding to the data read. | |
off_t | oggz_seek (OGGZ *oggz, off_t offset, int whence) |
Seek to a specific byte offset. |
|
Seek to a specific byte offset.
|
|
Seek to an offset in milliseconds, or custom units as specified by a Metric function you have provided.
|
|
Query the file offset in bytes corresponding to the data read.
|
|
Query the current offset in milliseconds, or custom units as specified by a Metric function you have provided.
|