[pulseaudio-discuss] VLC, PulseAudio and large tlengths

Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com
Fri Aug 19 11:54:20 PDT 2011


> For this example, assume tlength is 500 ms and minreq is 50 ms. In
> adjust latency mode (which I understand is recommended for power
> efficiency), this is configured to the client's tlength/2 - minreq =
> 200
> ms. The problem here is that if the client is filled up to only e g 130
> ms, PulseAudio will take the 130 ms, the client will underrun, and hand
> out 70 ms of silence. A better behaviour would be to write the 130 ms
> that are available, and go to sleep until the 130 ms is almost up and
> see if more data has come in at that time.

What is the value of the prebuf field here? If the playback started when the
buffer contains 200ms you would not see any underrun or rewind?
-Pierre



More information about the pulseaudio-discuss mailing list