module Decoder:sig
..end
Decode ogg/flac data
Usage is similar to the case of the native FLAC decoder, using the appropriate ogg/flac decoding callbacks.
The main difference is that in the
case of the ogg/flac decoding, the
exception Ogg.Not_enough_data
may
be raised if the ogg stream used to
create the decoder does not contain
enough data. In this case, you should
feed more data into the ogg stream and
call the decoding function again.
This remark is valid for both the
Flac.Decoder.init
and Flac.Decoder.process
functions.
type
ogg
Variant type for ogg/flac decoder
val check_packet : Ogg.Stream.packet -> bool
Check if an ogg packet is the first packet of an ogg/flac stream.
val get_callbacks : Flac.Decoder.write -> ogg Flac.Decoder.callbacks
Create a set of callbacks to decode an ogg/flac stream
val create : Ogg.Stream.packet ->
Ogg.Stream.stream ->
ogg Flac.Decoder.callbacks ->
ogg Flac.Decoder.dec
Create an ogg/flac decoder
val update_ogg_stream : ogg Flac.Decoder.t -> Ogg.Stream.stream -> unit
Update the Ogg.Stream.stream
associated
to the decoder.