Context.Offline
Offline audio contexts.
The type for OfflineAudioContextOptions
.
val opts :
channel_count:int ->
length:int ->
sample_rate_hz:float ->
unit ->
opts
opts ~channel_count ~length ~sample_rate_ht ()
are audio context options with the given properties.
The type for OfflineAudioContext
objects.
val as_target : t -> Brr.Ev.target
as_target c
is c
as an event target.
val start_rendering : t -> Buffer.t Fut.or_error
start_rendering c
starts rendering the audio graph and determines with the rendered audio buffer.
val suspend : t -> secs:float -> unit Fut.or_error
suspend c
suspends rendering for secs
seconds.
val resume : t -> unit Fut.or_error
resume c
resumes rendering.