Module Node.Constant_source

Constant source nodes.

type opts

The type for ConstantSourceOptions.

val opts : ?offset:float -> unit -> opts

opts () are constant source node options with given parameters.

type t

The type for ConstantSourceNode objects.

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

create ~opts c creates a constant source node node.

val as_node : t -> node

as_node n is n as an audio node.

val offset : t -> Param.t

offset n is the offset of n.

val start : ?time:float -> t -> unit

start n starts node n.

val stop : ?time:float -> t -> unit

stop n stops node n.