bogue
GUI library for ocaml, with animations, based on SDL2
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
Dependency graph
type sound = ( int, Bigarray.int16_signed_elt ) Tsdl.Sdl.bigarray
val create_mixer : ?tracks:int -> ?freq:int -> string option -> t
Create the mixer an open sound device. Only s16le
format is supported by the callback at this time.
val play_chunk :
?track:int ->
?effects:( sound -> unit ) list ->
?volume:float ->
?repeat:repeat ->
t ->
sound ->
int option
Play chunk on the desired track number. If track
is not specified, find an available track. By default repeat = Repeat 1
.
val change_volume : float -> sound -> unit
Multiply sound intensity by a float factor
val pause : t -> unit
val unpause : t -> unit
val close : t -> unit