Tportaudio.BufferAudio buffers.
val length : ('a, 'b) array -> intlength is Bigarray.Array1.dim.
val get : ('a, 'b) array -> int -> 'aget is Bigarray.Array1.get
val set : ('a, 'b) array -> int -> 'a -> unitset is Bigarray.Array1.set
The type for specifying how frames are laid out in buffers. See data.
val create :
channel_count:int ->
('a, 'b) sample_format ->
layout ->
frame_count:int ->
('a, 'b) tcreate ~channel_count sf layout ~frame_count is a buffer of frame_count frames for channel_count channels of sample format sf laid out according to layout (see data) and initially filled with zero_sample.
val channel_count : ('a, 'b) t -> intchannel_count b is the number of channels in b.
val sample_format : ('a, 'b) t -> ('a, 'b) sample_formatsample_format b is the sample format of b.
val frame_count : ('a, 'b) t -> intframe_count b is the number of frames in b.
data b is d the data of buffer b. If the layout of b is
`Interleaved the resulting array has a single element. The sample of channel c at frame f is given at get d.(0) (f * channel_count + c).`Planar, the resulting array one element per channel. The sample of channel c at frame f is given at get d.(c) f.