package alsa

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type handle
type params
type stream =
  1. | Playback
  2. | Capture
type mode =
  1. | Async
  2. | Non_blocking
val open_pcm : string -> stream list -> mode list -> handle
val close : handle -> unit
val prepare : handle -> unit
val resume : handle -> unit
val recover : ?verbose:bool -> handle -> exn -> unit
val start : handle -> unit
val drain : handle -> unit
val drop : handle -> unit
val pause : handle -> bool -> unit
val reset : handle -> unit
val wait : handle -> int -> bool
val readi : handle -> string -> int -> int -> int
val writei : handle -> string -> int -> int -> int
val readn : handle -> string array -> int -> int -> int
val writen : handle -> string array -> int -> int -> int
val readn_float : handle -> float array array -> int -> int -> int
val writen_float : handle -> float array array -> int -> int -> int
val readn_float64 : handle -> float array array -> int -> int -> int
val writen_float64 : handle -> float array array -> int -> int -> int
val get_delay : handle -> int
type state =
  1. | St_open
  2. | St_setup
  3. | St_prepared
  4. | St_running
  5. | St_xrun
  6. | St_draining
  7. | St_paused
  8. | St_suspended
  9. | St_disconnected
val get_state : handle -> state
val get_params : handle -> params
val set_params : handle -> params -> unit
type access =
  1. | Access_rw_interleaved
  2. | Access_rw_noninterleaved
val set_access : handle -> params -> access -> unit
type fmt =
  1. | Format_s16_le
  2. | Format_s24_3le
  3. | Format_float
  4. | Format_float64
val set_format : handle -> params -> fmt -> unit
val set_rate_near : handle -> params -> int -> direction -> int
val set_channels : handle -> params -> int -> unit
val set_periods : handle -> params -> int -> direction -> unit
val get_periods_min : params -> int * direction
val get_periods_max : params -> int * direction
val set_buffer_size : handle -> params -> int -> unit
val set_buffer_size_near : handle -> params -> int -> int
val get_buffer_size_min : params -> int
val get_buffer_size_max : params -> int
val set_nonblock : handle -> bool -> unit
val get_frame_size : params -> int
OCaml

Innovation. Community. Security.