Module Audio

val samples_of_seconds : int -> float -> int
val seconds_of_samples : int -> int -> float
val lin_of_dB : float -> float
val dB_of_lin : float -> float
module Sample : sig ... end
module Note : sig ... end
module Mono : sig ... end
type buffer = Mono.buffer array
val create : int -> int -> buffer
val create_same : buffer -> buffer
val clear : buffer -> int -> int -> unit
val copy : buffer -> buffer
val append : buffer -> buffer -> buffer
val channels : buffer -> int
val duration : buffer -> int
val to_mono : buffer -> Mono.buffer
val of_mono : Mono.buffer -> buffer
module U8 : sig ... end
module S16LE : sig ... end
module S16BE : sig ... end
module S24LE : sig ... end
module S32LE : sig ... end
val resample : ?⁠mode:[ `Linear | `Nearest ] -> float -> buffer -> int -> int -> buffer
val blit : buffer -> int -> buffer -> int -> int -> unit
val clip : buffer -> int -> int -> unit
val amplify : float -> buffer -> int -> int -> unit
val pan : float -> buffer -> int -> int -> unit
val add : buffer -> int -> buffer -> int -> int -> unit
val add_coeff : buffer -> int -> float -> buffer -> int -> int -> unit
module Buffer_ext : sig ... end
module Ringbuffer : sig ... end
module Ringbuffer_ext : sig ... end
module Analyze : sig ... end
module Effect : sig ... end
module Generator : sig ... end
module IO : sig ... end