Pulseaudio.SimpleSimple pulseaudio interface.
val create :
?server:string ->
client_name:string ->
dir:dir ->
?dev:string ->
stream_name:string ->
sample:sample ->
?map:map ->
?attr:buffer_attr ->
unit ->
tval free : t -> unitClose and free a connection to a server.
val read : t -> float array array -> int -> int -> unitval read_ba :
t ->
( float, Stdlib.Bigarray.float32_elt, Stdlib.Bigarray.c_layout )
Stdlib.Bigarray.Array1.t ->
unitval write : t -> float array array -> int -> int -> unitval write_ba :
t ->
( float, Stdlib.Bigarray.float32_elt, Stdlib.Bigarray.c_layout )
Stdlib.Bigarray.Array1.t ->
unitWrite data stored in a bigarray. Samples are interleaved.
val drain : t -> unitWait until all data already written is played by the daemon.
val flush : t -> unitFlush the playback buffer.
val latency : t -> intReturn the playback latency.