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>
Showing
This diff is collapsed.
Please register or sign in to comment