[pulseaudio-discuss] How to ask for small latency

Lennart Poettering lennart at poettering.net
Thu Dec 11 07:07:21 PST 2008

On Fri, 07.11.08 15:58, Hynek Hanke (hanke at brailcom.org) wrote:

> Hello,
> please, how do I ask Pulse Audio using the asynchronous API for a
> small latency setup? Currently, in our setup, Pulse Audio adjust the
> latency to 80ms (total) while playing sound from our application,
> but it won't go lower.  This is however very high for our purpose
> (speech navigation for the blind), we need to get it at least to
> 20ms.

In .13 the best way to request low latencies is passing the requested
latency when creating the stream in pa_buffer_attr.tlength. Then, set
PA_STREAM_ADJUST_LATENCY and you should be ready to go.


Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4

More information about the pulseaudio-discuss mailing list