package sfml

  1. Overview
  2. Docs

Online documentation for the SoundBuffer class

type t
val loadFromFile : filename:string -> t
val loadFromMemory : data:string -> t
val loadFromSamples : samples:samples -> channelCount:int -> sampleRate:int -> t
type input = [
  1. | `File of string
  2. | `Memory of string
  3. | `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