AoOCaml interface to the ao library.
type driver_t = private {id : int;kind : driver_kind_t;short_name : string;name : string;comment : string;priority : int;preferred_byte_format : byte_format_t;options : string list;}Driver type (private).
val get_default_driver : unit -> driver_tGet default driver
val drivers : driver_t listdrivers is a list of available drivers.
val open_live :
?bits:int ->
?rate:int ->
?channels:int ->
?channels_matrix:string ->
?byte_format:byte_format_t ->
?options:(string * string) list ->
?driver:driver_t ->
unit ->
topen_live. * The channels_matrix parameter is * used only if the module is compiled against * libao >= 1.0.
val open_file :
?bits:int ->
?rate:int ->
?channels:int ->
?channels_matrix:string ->
?byte_format:byte_format_t ->
?options:(string * string) list ->
?driver:driver_t ->
?overwrite:bool ->
string ->
topen_file. * The channels_matrix parameter is * used only if the module is compiled against * libao >= 1.0.
val find_driver : string -> driver_tfind_driver name returns the driver associated with the given short * name.
val play : t -> string -> unitplay device buf plays the sequence of samples in buf.
val close : t -> unitclose device closes the given device.
Backward compatibility functions, do not use them in new code.
val driver_kind : driver_t -> driver_kind_tval driver_name : driver_t -> stringval driver_short_name : driver_t -> stringval driver_comment : driver_t -> stringval driver_author : driver_t -> stringval driver_priority : driver_t -> intval driver_preferred_byte_format : driver_t -> byte_format_tval driver_options : driver_t -> string list