[pulseaudio-discuss] How to ask for small latency

Hynek Hanke hanke at brailcom.org
Mon Dec 22 05:31:32 PST 2008

Lennart Poettering wrote:
> 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.

I have trouble using PA_STREAM_ADJUST_LATENCY in 0.9.13 :

(pa_stream_connect_playback(id->pulse_stream, NULL, &a_attr, 
&id->pulse_volume, NULL)

I get an negative error value and an Invalid argument error.
The same function call works and later sound is produced
if I do not specify the PA_STREAM_ADJUST_LATENCY option.

This is with 2.6.27-7-generic kernel and libasound2 1.0.18-1ubuntu1
on Ubuntu Intrepid.

What is the correct way to use PA_STREAM_ADJUST_LATENCY. How
can I find more information about what is the problem?

With regards,
Hynek Hanke

More information about the pulseaudio-discuss mailing list