sfml
Bindings to the SFML multimedia library
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library sfml_audio
Online documentation for the Music class
val openFromFile : filename:string -> t
val openFromMemory : data:string -> t
val destroy : music:t -> unit
val play : music:t -> unit
val pause : music:t -> unit
val stop : music:t -> unit
val getChannelCount : music:t -> int
val getSampleRate : music:t -> int
val getStatus : music:t -> sound_status
val setLoop : music:t -> loop:bool -> unit
val getLoop : music:t -> bool
val setVolume : music:t -> volume:float -> unit
val getVolume : music:t -> float
val setPitch : music:t -> pitch:float -> unit
val getPitch : music:t -> float
val setRelativeToListener : music:t -> relative:bool -> unit
val isRelativeToListener : music:t -> bool
val setMinDistance : music:t -> minDistance:float -> unit
val getMinDistance : music:t -> float
val setAttenuation : music:t -> attenuation:float -> unit
val getAttenuation : music:t -> float
val setPosition : music:t -> pos:(float * float * float) -> unit
val setPosition3 : music:t -> x:float -> y:float -> z:float -> unit
val getPosition : music:t -> float * float * float