summaryrefslogtreecommitdiffstats
path: root/media/libeffects/downmix/Android.mk
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2012-03-02 10:59:56 -0800
committerJean-Michel Trivi <jmtrivi@google.com>2012-03-07 10:17:19 -0800
commit04c1e531b5913c09aa9b2e59e2b8ed9b4d8a4cba (patch)
tree643a1bd10a8e4d0e9a208a3987d41459d6db49d1 /media/libeffects/downmix/Android.mk
parenteb7de4504bdb3a0182021ca6f022cccca01dbf1e (diff)
downloadframeworks_av-04c1e531b5913c09aa9b2e59e2b8ed9b4d8a4cba.zip
frameworks_av-04c1e531b5913c09aa9b2e59e2b8ed9b4d8a4cba.tar.gz
frameworks_av-04c1e531b5913c09aa9b2e59e2b8ed9b4d8a4cba.tar.bz2
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
Diffstat (limited to 'media/libeffects/downmix/Android.mk')
-rw-r--r--media/libeffects/downmix/Android.mk28
1 files changed, 28 insertions, 0 deletions
diff --git a/media/libeffects/downmix/Android.mk b/media/libeffects/downmix/Android.mk
new file mode 100644
index 0000000..0348e1e
--- /dev/null
+++ b/media/libeffects/downmix/Android.mk
@@ -0,0 +1,28 @@
+LOCAL_PATH:= $(call my-dir)
+
+# Multichannel downmix effect library
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES:= \
+ EffectDownmix.c
+
+LOCAL_SHARED_LIBRARIES := \
+ libcutils
+
+LOCAL_MODULE:= libdownmix
+
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/soundfx
+
+ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
+LOCAL_LDLIBS += -ldl
+endif
+
+LOCAL_C_INCLUDES := \
+ system/media/audio_effects/include \
+ system/media/audio_utils/include
+
+LOCAL_PRELINK_MODULE := false
+
+include $(BUILD_SHARED_LIBRARY)