module Sync:sig..end
type t
val create : (int -> string * int) -> tSync.t to a known initial value
in preparation for manipulation of an Ogg bitstream.
The function passed is used to fill the stream with new data. It receives a number of bytes to read
and returns a string read and its size.
val create_from_file : string -> t * Unix.file_descrcreate to open a file as the ogg stream.val read : t -> Ogg.Page.tSync.t
Raises Not_enough_data if the reading function returned an empty string.
val reset : ?read_func:(int -> string * int) -> t -> unitSync.t to initial values.
read_func is optional and is a new function to read new data.