module SFSoundBuffer:sig
..end
Online documentation for the SoundBuffer class
type
t
typesamples =
(int, Stdlib.Bigarray.int16_signed_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.t
val loadFromFile : filename:string -> t
val loadFromMemory : data:string -> t
val loadFromSamples : samples:samples ->
channelCount:int -> sampleRate:int -> t
typeinput =
[ `File of string
| `Memory of string
| `Samples of samples * int * int ]
val load : input -> t
val getSampleCount : t -> int
val getSampleRate : t -> int
val getChannelCount : t -> int
val getDuration : t -> SFTime.t
val saveToFile : t -> filename:string -> unit