Audio.BufferAudio buffers.
The type for AudioBufferOptions.
val opts : channel_count:int -> length:int -> sample_rate_hz:float -> unit -> optsopts ~channel_count ~length ~sample_rate_ht () are audio context options with the given properties.
The type for AudioBuffer objects.
val sample_rate : t -> floatsample_rate b is the sample rate of b.
val channel_count : t -> intchannel_count b is the number of channels of b.
val get_channel_data : t -> channel:int -> Brr.Tarray.float32get_channel_data b ~channel is the channel data of channel in b.
val copy_from_channel : ?dst_start:int -> t -> channel:int -> dst:Brr.Tarray.float32 -> unitcopy_from_channel b ~channel ~dst copies data of channel channel of b into dst.
val copy_to_channel : ?dst_start:int -> t -> src:Brr.Tarray.float32 -> channel:int -> unitcopy_to_channel b ~src ~channel copies data of src to channel channel of b.