Module SFSoundBuffer

module SFSoundBuffer: sig .. end

Online documentation for the SoundBuffer class

type t 
type samples = (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
type input = [ `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