Module Alsa


module Alsa: sig .. end
Interface with the alsa drivers.


Author(s): Samuel Mimram


val get_version : unit -> string
Get the ALSA sound library version in ASCII format.
exception Buffer_xrun
A buffer underrun / overrun occured.

PCM is not in the right state.

exception Bad_state
A suspend event occurred (stream is suspended and waiting for an application recovery).
exception Suspended
exception IO_error
Input/output error.

Device or resource was busy.

exception Device_busy
Function was called with an invalid argument.
exception Invalid_argument
exception Broken_pipe
exception Unknown_error of int

type direction =
| Dir_down
| Dir_eq
| Dir_up
val string_of_error : int -> string
Get an error message corresponding to an error number (given by an Unknown_error exception).
val no_stderr_report : unit -> unit
Do not report errors on stderr.
module Pcm: sig .. end