]> git.sesse.net Git - vlc/commit
audiotrack: refactor Configure and Start
authorThomas Guillem <thomas@gllm.fr>
Wed, 11 Mar 2015 14:00:45 +0000 (15:00 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 11 Mar 2015 14:12:43 +0000 (15:12 +0100)
commitb4d7ab2bf417e6fc92f42d2228cdc134db19ef8a
treede7cf73c87440bff3c526ed480a2ed9dfcc78a52
parentdf48e0eeffb4eb8b4e05e1c9c0bf7efdf7a06e72
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@videolan.org>
modules/audio_output/audiotrack.c