package opus

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type application = [
  1. | `Audio
  2. | `Restricted_lowdelay
  3. | `Voip
]
type signal = [
  1. | `Auto
  2. | `Music
  3. | `Voice
]
type bitrate = [
  1. | `Auto
  2. | `Bitrate of int
  3. | `Bitrate_max
]
type control = [
  1. | `Get_application of application
  2. | `Get_bandwidth of bandwidth Stdlib.ref
  3. | `Get_bitrate of bitrate Stdlib.ref
  4. | `Get_complexity of int Stdlib.ref
  5. | `Get_dtx of bool Stdlib.ref
  6. | `Get_final_range of int Stdlib.ref
  7. | `Get_force_channels of bool Stdlib.ref
  8. | `Get_inband_fec of bool Stdlib.ref
  9. | `Get_lookhead of int
  10. | `Get_lsb_depth of int Stdlib.ref
  11. | `Get_max_bandwidth of max_bandwidth
  12. | `Get_packet_loss_perc of int Stdlib.ref
  13. | `Get_pitch of int Stdlib.ref
  14. | `Get_samplerate of int
  15. | `Get_signal of signal Stdlib.ref
  16. | `Get_vbr of bool Stdlib.ref
  17. | `Get_vbr_constraint of bool Stdlib.ref
  18. | `Reset_state
  19. | `Set_application of application
  20. | `Set_bandwidth of bandwidth
  21. | `Set_bitrate of bitrate
  22. | `Set_complexity of int
  23. | `Set_dtx of bool
  24. | `Set_force_channels of bool
  25. | `Set_inband_fec of bool
  26. | `Set_lsb_depth of int
  27. | `Set_max_bandwidth of max_bandwidth
  28. | `Set_packet_loss_perc of int
  29. | `Set_phase_inversion_disabled of bool
  30. | `Set_signal of signal
  31. | `Set_vbr of bool
  32. | `Set_vbr_constraint of bool
]
type t
val create : ?pre_skip:int -> ?comments:(string * string) list -> ?gain:int -> samplerate:int -> channels:int -> application:application -> Ogg.Stream.stream -> t
val header : t -> Ogg.Stream.packet
val comments : t -> Ogg.Stream.packet
val apply_control : control -> t -> unit
val encode_float : ?frame_size:float -> t -> float array array -> int -> int -> int
val eos : t -> unit