Eric Laurent 0fb66c2b83 New effect library API
Moved and renamed media/EffectApi.h to hardware/audio_effect.h
Modified the effect library API to expose a library info structure
containing an interface functions table.
Also removed enums for audio channels, audio format and devices
from effect API and use values from system/audio.h instead.

Modified effects factory to support new library interface format and
load libraries and efffects listed in audio_effects.conf file.
The file audio_effects.conf is first loaded from /vendor/etc and
then from /system/etc/audio_effects.conf if not found.

Modified existing effect libraries to implement the new library interface.

Change-Id: Ie52351e071b6d352fa2fbc06c3846686f8c45df9
2011-05-27 15:15:00 -07:00

67 lines
1.2 KiB
Plaintext

LOCAL_PATH:= $(call my-dir)
# Test Reverb library
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
EffectReverb.c.arm \
EffectsMath.c.arm
LOCAL_CFLAGS+= -O2
LOCAL_SHARED_LIBRARIES := \
libcutils
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/soundfx
LOCAL_MODULE:= libreverbtest
ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
LOCAL_LDLIBS += -ldl
endif
ifneq ($(TARGET_SIMULATOR),true)
LOCAL_SHARED_LIBRARIES += libdl
endif
LOCAL_C_INCLUDES := \
$(call include-path-for, graphics corecg)
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
# Test Equalizer library
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
EffectsMath.c.arm \
EffectEqualizer.cpp \
AudioBiquadFilter.cpp.arm \
AudioCoefInterpolator.cpp.arm \
AudioPeakingFilter.cpp.arm \
AudioShelvingFilter.cpp.arm \
AudioEqualizer.cpp.arm
LOCAL_CFLAGS+= -O2
LOCAL_SHARED_LIBRARIES := \
libcutils
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/soundfx
LOCAL_MODULE:= libequalizertest
ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
LOCAL_LDLIBS += -ldl
endif
ifneq ($(TARGET_SIMULATOR),true)
LOCAL_SHARED_LIBRARIES += libdl
endif
LOCAL_C_INCLUDES := \
$(call include-path-for, graphics corecg)
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)