Audio.ContextAudio contexts.
module State : sig ... endThe context state enumeration.
module Base : sig ... endBase audio contexts.
module Latency_category : sig ... endAudio latency category enumeration.
The type for AudioContextOptions.
val opts :
?latency_hint:[ `Category of Latency_category.t | `Secs of float ] ->
?sample_rate_hz:float ->
unit ->
optsopts () are audio context options with the given properties.
The type for AudioContext objects.
val as_target : t -> Brr.Ev.targetas_target c is c as an event target.
val base_latency : t -> floatbase_latency c is the base latency of c.
val output_latency : t -> floatoutput_latency c is the output latency of c.
val get_output_timestamp : t -> Timestamp.tget_output_timestamp c is the output timestamp of c.
val resume : t -> unit Fut.or_errorresume c resumes progression of time in c.
val suspend : t -> unit Fut.or_errorsuspend c suspend progression of time in c.
val close : t -> unit Fut.or_errorclose c closes the audio context c.
module Offline : sig ... endOffline audio contexts.