]> git.sesse.net Git - vlc/commit
audiotrack: fix too unstable delay and write taking too much time
authorThomas Guillem <thomas@gllm.fr>
Tue, 3 Mar 2015 18:00:55 +0000 (19:00 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 4 Mar 2015 09:02:47 +0000 (10:02 +0100)
commita0107422ab3db4c34896d4c100c865bd5cda04fa
treebe2e7bf16a3e7fe0eb5459ac0a4dff2a619e194d
parent163e6d839a0e012483f3d3a443b35151abd87e63
audiotrack: fix too unstable delay and write taking too much time

- All JNIThread commands are now executed in a locked state.

- The delay (audiotrack delay + queue delay) is now calculated inside JNIThread.

- Write is now non-blocking and return almost immediately (it takes between 5us
  and 100us). Indeed when audiotrack internal buffer was full, write method was
  taking way too much time, therefore others commands were not processed in
  time (like TIME_GET).

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/audio_output/audiotrack.c