OSDN Git Service

android/hal-audio: Add simple downmix to mono
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Tue, 4 Feb 2014 13:38:45 +0000 (14:38 +0100)
committerSzymon Janc <szymon.janc@tieto.com>
Fri, 21 Feb 2014 12:01:50 +0000 (13:01 +0100)
commitf68a71a4d42c1dbf4a6a4243d3263510dc3e9eb1
tree6211503d0e13603d8a3eaa692064a54d786fdb49
parentfd25ce76a2db0f9b5381e9f78621d60a7d1011d2
android/hal-audio: Add simple downmix to mono

This patch adds simple downmix support from stereo to mono in order to
support mono channel mode as it's mandatory for SBC codec. It uses
simple (L+R)/2 calculation which should be good enough.
android/hal-audio.c