From 04c1e531b5913c09aa9b2e59e2b8ed9b4d8a4cba Mon Sep 17 00:00:00 2001 From: Jean-Michel Trivi Date: Fri, 2 Mar 2012 10:59:56 -0800 Subject: 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 --- media/libeffects/downmix/Android.mk | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 media/libeffects/downmix/Android.mk (limited to 'media/libeffects/downmix/Android.mk') 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) -- cgit v1.1