[pulseaudio-discuss] VLC, PulseAudio and large tlengths

Rémi Denis-Courmont remi at remlab.net
Fri Aug 19 13:34:40 PDT 2011


Le vendredi 19 août 2011 21:54:20 Pierre-Louis Bossart, vous avez écrit :
> > 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?

In current VLC, prebuf is 0. Trigger is manual.

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis


More information about the pulseaudio-discuss mailing list