Module Node.Gain

Gain nodes.

type opts

The type for GainOptions.

val opts : ?channel_count:int -> ?channel_count_mode:Channel_count_mode.t -> ?channel_interpretation:Channel_interpretation.t -> ?gain:float -> unit -> opts

opts () are gain node options with given parameters.

type t

The type for GainNode objects.

val create : ?opts:opts -> context -> t

create ~opts c creates a gain node.

val as_node : t -> node

as_node n is n as an audio node.

val gain : t -> Param.t

gain d is the gain of n.