Skip to content

Commit 64143ab

Browse files
committed
Effect for multichannel PCM downmix to stereo
First pass at implementing an audio effect whose role is to downmix multichannel PCM buffers to stereo. The effect is not handling volume changes. The effect code here handles quad, 4.0, 5.1 and 7.1 input configurations, to optimize the most commom configurations, and does not yet handle generic multichanel configurations. Change-Id: I74d04bd961348f3f0e4ae7714b70e620808a0829
1 parent b93a765 commit 64143ab

File tree

3 files changed

+1013
-0
lines changed

3 files changed

+1013
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
LOCAL_PATH:= $(call my-dir)
2+
3+
# Multichannel downmix effect library
4+
include $(CLEAR_VARS)
5+
6+
LOCAL_SRC_FILES:= \
7+
EffectDownmix.c
8+
9+
LOCAL_SHARED_LIBRARIES := \
10+
libcutils
11+
12+
LOCAL_MODULE:= libdownmix
13+
14+
LOCAL_MODULE_TAGS := optional
15+
16+
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/soundfx
17+
18+
ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
19+
LOCAL_LDLIBS += -ldl
20+
endif
21+
22+
LOCAL_C_INCLUDES := \
23+
system/media/audio_effects/include \
24+
system/media/audio_utils/include
25+
26+
LOCAL_PRELINK_MODULE := false
27+
28+
include $(BUILD_SHARED_LIBRARY)

0 commit comments

Comments
 (0)