package pulseaudio

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

Module Pulseaudio.SimpleSource

Simple pulseaudio interface.

Sourcetype t

Connections to a server.

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

Close and free a connection to a server.

Sourceval read : t -> float array array -> int -> int -> unit
Sourceval write : t -> float array array -> int -> int -> unit

Write data stored in a bigarray. Samples are interleaved.

Sourceval drain : t -> unit

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

Sourceval flush : t -> unit

Flush the playback buffer.

Sourceval latency : t -> int

Return the playback latency.

OCaml

Innovation. Community. Security.