package sfml

  1. Overview
  2. Docs
Bindings to the SFML multimedia library

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-sfml-0.09.2.tar.gz
sha256=ce1e50dec69a4495232261627a359a8fb54d79788147380bee78b0983f8b6951
md5=9ae99bb47bb68d5181d01b7bbc78a351

doc/sfml.audio/SFSoundBuffer/index.html

Module SFSoundBuffer

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
OCaml

Innovation. Community. Security.