Module Opus.Decoder

module Decoder: sig .. end

type control = [ `Get_bandwidth of Opus.bandwidth Stdlib.ref
| `Get_final_range of int Stdlib.ref
| `Get_gain of int Stdlib.ref
| `Get_lsb_depth of int Stdlib.ref
| `Get_pitch of int Stdlib.ref
| `Reset_state
| `Set_gain of int
| `Set_lsb_depth of int ]
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