[vlc-commits] audiotrack: refactor Configure and Start

Thomas Guillem git at videolan.org
Wed Mar 11 15:21:06 CET 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Mar 11 15:00:45 2015 +0100| [b4d7ab2bf417e6fc92f42d2228cdc134db19ef8a] | committer: Jean-Baptiste Kempf

audiotrack: refactor Configure and Start

Rename JNIThread_Configure into JNIThread_NewAudioTrack. This function doesn't
touch any vlc format anymore, it does only Android AudioTrack configuration.
The VLC init part is done by the Start function. JNIThread_NewAudioTrack can be
called up to 3 times by Start with different channels and format until if find
a working configuration. Indeed some devices don't support 5.1, or FL32.

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

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

 modules/audio_output/audiotrack.c |  281 ++++++++++++++++++++-----------------
 1 file changed, 154 insertions(+), 127 deletions(-)

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


More information about the vlc-commits mailing list