[vlc-devel] [PATCH] audiotrack: increase audio latency

Thomas Guillem thomas at gllm.fr
Wed Feb 18 09:36:12 CET 2015

On Tue, Feb 17, 2015, at 19:41, Rémi Denis-Courmont wrote:
> Le vendredi 13 février 2015, 19:26:58 Thomas Guillem a écrit :
> > Queue more than one audio buffer at a time (limit of 15 buffers). TimeGet
> > will report a bigger delay, but the module will be more stable and more
> > efficient.
> I can´t speak for Android. But given the large variance in block sizes 
> depending on the decoder, I don´t think that a limit of 15 blocks makes
> any 
> sense.

I think I know my problem. If I queue all VLC buffers, I have a queue
that can vary between 60 and 65 buffers (on the sample/device I tested).
A difference of 5 buffers may be too big. Indeed, it means that my delay
can vary between 1600ms and 17200ms (for this example). I think that's
what provoke the up and down sampling.

Having a limit of 15 buffers allow to have a smaller difference of
buffers queued and then a smaller delay gap, but it's not a good
solution, the problem can still happen.

> -- 
> Rémi Denis-Courmont
> http://www.remlab.net/
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

More information about the vlc-devel mailing list