package opus

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type control = [
  1. | generic_control
  2. | `Set_gain of int
  3. | `Get_gain of int Stdlib.ref
]
type t
val check_packet : Ogg.Stream.packet -> bool
val create : ?samplerate:int -> Ogg.Stream.packet -> Ogg.Stream.packet -> t

Create a decoder with given samplerate an number of channels.

val comments : t -> string * (string * string) list
val channels : t -> int
val apply_control : control -> t -> unit
val decode_float : ?decode_fec:bool -> t -> Ogg.Stream.stream -> float array array -> int -> int -> int
val decode_float_ba : ?decode_fec:bool -> t -> Ogg.Stream.stream -> (float, Stdlib.Bigarray.float32_elt, Stdlib.Bigarray.c_layout) Stdlib.Bigarray.Array1.t array -> int -> int -> int