c2db119d0a
Add comments about which methods implement the AudioBufferProvider interface. Simplified the definition of kInvalidPts. <stdint.h> is very hard to work with, there seems to be no way to use it reliably to get INT64_MAX without having a separate source file, which is ugly because it means kInvalidPts is not a compile-time constant. So I just deleted AudioBufferProvider.cpp and used a hard-coded constant instead. Added a default constructor for Buffer so that the fields aren't random (especially .raw which is used to determine if the buffer is valid). Make the pts for getNextBuffer default to kInvalidPTS so code that doesn't need a pts doesn't have to specify a value. Rename the parameter to AudioMixer::setBufferProvider to make it clearer. Change-Id: I87e7290884d4ed975b019f62d1ab6ae2bc5065a5
38 lines
774 B
Makefile
38 lines
774 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
AudioFlinger.cpp \
|
|
AudioMixer.cpp.arm \
|
|
AudioResampler.cpp.arm \
|
|
AudioPolicyService.cpp \
|
|
ServiceUtilities.cpp
|
|
# AudioResamplerSinc.cpp.arm
|
|
# AudioResamplerCubic.cpp.arm
|
|
|
|
LOCAL_C_INCLUDES := \
|
|
system/media/audio_effects/include \
|
|
system/media/audio_utils/include
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libaudioutils \
|
|
libcommon_time_client \
|
|
libcutils \
|
|
libutils \
|
|
libbinder \
|
|
libmedia \
|
|
libhardware \
|
|
libhardware_legacy \
|
|
libeffects \
|
|
libdl \
|
|
libpowermanager
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libcpustats \
|
|
libmedia_helper
|
|
|
|
LOCAL_MODULE:= libaudioflinger
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|