Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04c1e531 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

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
parent eb7de450
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
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)