]> git.sesse.net Git - vlc/commit
audiotrack: add 5.1 and 7.1 support
authorThomas Guillem <thomas@gllm.fr>
Mon, 9 Mar 2015 16:48:22 +0000 (17:48 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 10 Mar 2015 10:19:45 +0000 (11:19 +0100)
commit0172a96435d206a5a13829e5d629ed524e90bd90
treea26794703fcfd81169faab3686df13afe87f5909
parent994e4896e7ec385679fc1c3d131b8bb01420d584
audiotrack: add 5.1 and 7.1 support

Works with SPDIF and HDMI audio output. Android will downmix to stereo if the
audio output is stereo.

7.1 support was added since Android 5.0.

5.1 support was added since the beginning but doesn't work on old devices.
That's why we fallback to stereo if AudioTrack fails to init with more than 2
channels.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/audio_output/audiotrack.c