package pulseaudio

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Simple pulseaudio interface.

type t

Connections to a server.

val create : ?server:string -> client_name:string -> dir:dir -> ?dev:string -> stream_name:string -> sample:sample -> ?map:map -> ?attr:buffer_attr -> unit -> t
val free : t -> unit

Close and free a connection to a server.

val read : t -> float array array -> int -> int -> unit
val read_ba : t -> (float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t -> unit
val write : t -> float array array -> int -> int -> unit
val write_ba : t -> (float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t -> unit

Write data stored in a bigarray. Samples are interleaved.

val drain : t -> unit

Wait until all data already written is played by the daemon.

val flush : t -> unit

Flush the playback buffer.

val latency : t -> int

Return the playback latency.

OCaml

Innovation. Community. Security.