Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
SDL2_mixer bindings for use with Tsdl
References
module Init : sig ... end
type 'a result = 'a Tsdl.Sdl.result
val open_audio : int -> int -> int -> int -> unit result
val query_spec :
int Ctypes_static.ptr ->
Unsigned.uint16 Ctypes_static.ptr ->
int Ctypes_static.ptr ->
int
val default_format : Tsdl.Sdl.Audio.format
val load_wav_rw : Tsdl.Sdl.rw_ops -> int -> chunk result
val quickload_wav : Unsigned.uint8 Ctypes_static.ptr -> chunk result
val quickload_raw :
Unsigned.uint8 Ctypes_static.ptr ->
Unsigned.uint32 ->
chunk result
val free_chunk : chunk -> unit
val volume_chunk : chunk -> int -> int
val halt_channel : int -> unit result
val fading_channel : int -> fading
val reserve_channels : int -> unit result
val group_channel : int -> int -> bool result
val group_channels : int -> int -> int -> bool result
val group_available : int -> int result
val halt_group : int -> unit result
val load_mus_rw : Tsdl.Sdl.rw_ops -> int -> music result
val load_mus_type_rw : Tsdl.Sdl.rw_ops -> music_type -> int -> music result
val free_music : music -> unit
val get_music_type : music option -> music_type
val hook_music :
(unit Ctypes_static.ptr -> Unsigned.uint8 Ctypes_static.ptr -> int -> unit) ->
unit Ctypes_static.ptr ->
unit
val get_music_hook_data : unit -> unit Ctypes_static.ptr
val halt_music : unit -> unit result
val fade_out_music : int -> unit result
val set_music_cmd : string -> unit result
val set_synchro_value : int -> unit result
val get_synchro_value : unit -> int result
val set_sound_fonts : string -> unit result
val each_sound_font :
(string -> unit Ctypes_static.ptr -> int) ->
unit Ctypes_static.ptr ->
unit result
val fading_music : unit -> fading
val set_music_position : float -> int result
val set_post_mix :
(unit Ctypes_static.ptr -> Unsigned.uint8 Ctypes_static.ptr -> int -> unit) ->
unit Ctypes_static.ptr ->
unit
val effect_func_t :
(int ->
unit Ctypes_static.ptr ->
int ->
unit Ctypes_static.ptr ->
unit)
Ctypes.fn
val effect_done_t : (int -> unit Ctypes_static.ptr -> unit) Ctypes.fn
val register_effect :
int ->
(int -> unit Ctypes_static.ptr -> int -> unit Ctypes_static.ptr -> unit) ->
(int -> unit Ctypes_static.ptr -> unit) ->
unit Ctypes_static.ptr ->
unit result
val unregister_effect :
int ->
(int -> unit Ctypes_static.ptr -> int -> unit Ctypes_static.ptr -> unit) ->
unit result
val unregister_all_effects : int -> unit result
val set_panning : int -> Unsigned.uint8 -> Unsigned.uint8 -> unit result
val set_position : int -> int -> Unsigned.uint8 -> unit result
val set_distance : int -> Unsigned.uint8 -> unit result
val set_reverse_stereo : int -> int -> unit result