package ocamlsdl2

  1. Overview
  2. Docs
type t = Sdlaudio.t
type format = Sdlaudio.format =
  1. | AUDIO_U8
  2. | AUDIO_S8
  3. | AUDIO_U16LSB
  4. | AUDIO_S16LSB
  5. | AUDIO_U16MSB
  6. | AUDIO_S16MSB
  7. | AUDIO_U16
  8. | AUDIO_S16
  9. | AUDIO_S32LSB
  10. | AUDIO_S32MSB
  11. | AUDIO_S32
  12. | AUDIO_F32LSB
  13. | AUDIO_F32MSB
  14. | AUDIO_F32
  15. | AUDIO_U16SYS
  16. | AUDIO_S16SYS
  17. | AUDIO_S32SYS
  18. | AUDIO_F32SYS
val get_drivers : unit -> string array
val init : driver_name:string -> unit
val quit : unit -> unit
val get_current_driver : unit -> string
type status = Sdlaudio.status =
  1. | Stopped
  2. | Playing
  3. | Paused
val get_status : unit -> status
val string_of_status : status -> string
val pause : pause_on:bool -> unit
val lock : unit -> unit
val unlock : unit -> unit
val close : unit -> unit
OCaml

Innovation. Community. Security.