[vlc-commits] audiotrack: add 5.1 and 7.1 support

Thomas Guillem git at videolan.org
Tue Mar 10 11:19:55 CET 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Mar  9 17:48:22 2015 +0100| [0172a96435d206a5a13829e5d629ed524e90bd90] | committer: Jean-Baptiste Kempf

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 at videolan.org>

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

 modules/audio_output/audiotrack.c |  282 ++++++++++++++++++++++++++++++-------
 1 file changed, 231 insertions(+), 51 deletions(-)

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


More information about the vlc-commits mailing list