[vlc-commits] audiotrack: add java module

Thomas Guillem git at videolan.org
Tue Feb 10 11:14:45 CET 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Feb 10 10:58:51 2015 +0100| [c1f8d1ce6634598cbdf9829591d5e548787bf3e9] | committer: Jean-Baptiste Kempf

audiotrack: add java module

This module is based on the old native audiotrack but uses the public Java
AudioTrack API via JNI. All JNI operations are done in a separate thread in
order to avoid the overhead when attaching and detaching the current thread to
the Java VM.

News since native audiotrack:
 - Flush discards audio immediately (if not wait).
 - It can handle a mediaserver crash and restart (for Android 5.0 and after).

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c1f8d1ce6634598cbdf9829591d5e548787bf3e9
---

 modules/audio_output/Makefile.am  |    3 +-
 modules/audio_output/audiotrack.c |  869 +++++++++++++++++++++++++++++++++++++
 2 files changed, 870 insertions(+), 2 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=c1f8d1ce6634598cbdf9829591d5e548787bf3e9


More information about the vlc-commits mailing list