# Module Pulseaudio.Simple

    module Simple: sig .. end

Simple pulseaudio interface.

    type t

Connections to a server.

    val create : ?server:string ->
           client_name:string ->
           dir:Pulseaudio.dir ->
           ?dev:string ->
           stream_name:string ->
           sample:Pulseaudio.sample ->
           ?map:Pulseaudio.map ->
           ?attr:Pulseaudio.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 write : t -> float array array -> int -> int -> unit

    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.