]> git.sesse.net Git - vlc/commit
audiotrack: increase audio latency
authorThomas Guillem <thomas@gllm.fr>
Fri, 20 Feb 2015 09:13:37 +0000 (10:13 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 20 Feb 2015 09:24:44 +0000 (10:24 +0100)
commite7309f3b25e34b24c6229695664443b4e013f3ea
treebcf6edf6a8df5bac96f91e869d03fa0a1ad228d4
parenta39f80a6773a267f36c7d526187df156c12da9bf
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@videolan.org>
modules/audio_output/audiotrack.c