module SFMusic: sig
.. end
type
t
val createFromFile : filename:string -> t
val createFromMemory : data:string -> t
val destroy : music:t -> unit
val play : music:t -> unit
val stop : music:t -> unit
val pause : music:t -> unit
val setLoop : music:t -> loop:bool -> unit
val setVolume : music:t -> volume:float -> unit
val getVolume : music:t -> float
val setPitch : music:t -> pitch:float -> unit
val setMinDistance : music:t -> minDistance:float -> unit
val setAttenuation : music:t -> attenuation:float -> unit
val setPosition : music:t -> x:float -> y:float -> z:float -> unit
val setRelativeToListener : music:t -> relative:bool -> unit
val getDuration : music:t -> float
val getSampleRate : music:t -> int
val getChannelsCount : music:t -> int
val getPlayingOffset : music:t -> float
type
sound_status =
| |
Stopped |
| |
Paused |
| |
Playing |
val getStatus : music:t -> sound_status