module Encoder:sig..end
type t
val init : Speex.mode -> int -> tval get : t -> Speex.control -> intval set : t -> Speex.control -> int -> unitval encode_page : t -> Ogg.Stream.t -> (unit -> float array) -> Ogg.Page.tencode_page encoder stream f: calls f to get audio data and encode it until a page is ready.
Known issue: float expected values seem not to be in -1..1 but in
-32768..32767 which does not seem to be correct.
val encode_page_stereo : t -> Ogg.Stream.t -> (unit -> float array array) -> Ogg.Page.tencode_page except that it encodes stereo data into mono.val encode_page_int : t -> Ogg.Stream.t -> (unit -> int array) -> Ogg.Page.tencode_page but using integers.val encode_page_int_stereo : t -> Ogg.Stream.t -> (unit -> int array array) -> Ogg.Page.tencode_page_stereo but using integers.val eos : t -> Ogg.Stream.t -> unit