[vlc-commits] audiotrack: increase audio latency

Thomas Guillem git at videolan.org
Fri Feb 20 10:25:10 CET 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb 20 10:13:37 2015 +0100| [e7309f3b25e34b24c6229695664443b4e013f3ea] | committer: Jean-Baptiste Kempf

audiotrack: increase audio latency

Queue more than one audio buffer at a time (limit of 1 second). TimeGet will
report a bigger delay, but the module will be more stable and more efficient.

AudioTrack delay is now calculated by JNIThread when a buffer is written.
Overall delay is calculated in TimeGet by adding AudioTrack delay and queued
delay.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e7309f3b25e34b24c6229695664443b4e013f3ea
---

 modules/audio_output/audiotrack.c |  515 ++++++++++++++++++++++++++-----------
 1 file changed, 362 insertions(+), 153 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=e7309f3b25e34b24c6229695664443b4e013f3ea


More information about the vlc-commits mailing list