[vlc-commits] audiotrack: fix too unstable delay and write taking	too much time
    Thomas Guillem 
    git at videolan.org
       
    Wed Mar  4 10:03:16 CET 2015
    
    
  
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Mar  3 19:00:55 2015 +0100| [a0107422ab3db4c34896d4c100c865bd5cda04fa] | committer: Jean-Baptiste Kempf
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 at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a0107422ab3db4c34896d4c100c865bd5cda04fa
---
 modules/audio_output/audiotrack.c |  280 ++++++++++++++++++++++++-------------
 1 file changed, 182 insertions(+), 98 deletions(-)
Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=a0107422ab3db4c34896d4c100c865bd5cda04fa
    
    
More information about the vlc-commits
mailing list