type sound = (int, Stdlib.Bigarray.int16_signed_elt)Tsdl.Sdl.bigarray
type repeat =
| Repeatof int
| Forever
val test : unit -> unit
val init : unit ->string option
Initialize SDL audio.
returns
the name of the audio driver, or None if no audio is available.
val create_mixer : ?tracks:int ->?freq:int ->string option->t
create devname creates the mixer an opens the sound device. If devname is None, a dummy mixer is returned, which will produce no sound. Only s16le format is supported by the callback at this time. The mixer is initially paused, you need to unpause it before playing anything.