• Thomas Guillem's avatar
    audiotrack: fix too unstable delay and write taking too much time · a0107422
    Thomas Guillem authored
    - 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: default avatarJean-Baptiste Kempf <jb@videolan.org>
    a0107422
audiotrack.c 36.3 KB