Module Context.Base
Base audio contexts.
Audio contexts
type t
= Node.context
The type for
BaseAudioContext
objects.
val as_target : t -> Brr.Ev.target
as_target c
isc
as an event target.
val decode_audio_data : t -> Buffer.t -> Buffer.t Fut.or_error
decode_audio_data t b
decodes the audio data inb
.
Properties
val destination : t -> Node.Destination.t
destination c
is the destination ofc
.
val sample_rate : t -> float
sample_rate c
is the sample rate ofc
.
val current_time : t -> float
current_time c
is the current time ofc
.
val listener : t -> Listener.t
listener c
is the listener ofc
.
val audio_worklet : t -> Worklet.t
audio_worklet c
is the audio worklet ofc
.