Module Vorbis.Encoder


module Encoder: sig .. end

type t 
Internal state of an encoder.
val create : int -> int -> int -> int -> int -> t
create chans rate max_br nom_br min_br creates a new encoder with chans channels, with sample rate rate Hz and with respectively max_br, nom_br and min_br as maximal, nominal and minimal bitrates.
val create_vbr : int -> int -> float -> t
create_vbr chans rate quality creates a new encoder in variable bitrate with chans channels, with sample rate rate Hz and with quality quality, which should be between -1 and 1 (1 is the best).
val reset : t -> unit
val headerout : t -> Ogg.Stream.t -> (string * string) list -> unit
Encode a header given a list of tags.
val encode_buffer_float : t -> Ogg.Stream.t -> float array array -> int -> int -> unit
Encode a buffer of PCM data.
val end_of_stream : t -> Ogg.Stream.t -> unit