package sfml

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

Install

Dune Dependency

Authors

Maintainers

Sources

v0.09.tar.gz
sha256=75e28f425d6c40f39f7aac53b413da3d48ecd50aa88cdf644d38a14897a59a30
md5=01ffc5b471d774f2d6234c639b067f04

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.