package sfml

  1. Overview
  2. Docs

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 = [
  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
OCaml

Innovation. Community. Security.