Make source limits configurable

master
Marc Salem 2012-08-09 15:08:10 -07:00
parent 6af28c7540
commit 0b27808644
2 changed files with 12 additions and 0 deletions

View File

@ -67,6 +67,11 @@ ifeq ($(TARGET_ARCH_ABI),armeabi)
LOCAL_CFLAGS += -marm -DOPENAL_FIXED_POINT -DOPENAL_FIXED_POINT_SHIFT=16
endif
MAX_SOURCES_LOW ?= 4
MAX_SOURCES_START ?= 8
MAX_SOURCES_HIGH ?= 64
LOCAL_CFLAGS += -DMAX_SOURCES_LOW=$(MAX_SOURCES_LOW) -DMAX_SOURCES_START=$(MAX_SOURCES_START) -DMAX_SOURCES_HIGH=$(MAX_SOURCES_HIGH)
LOCAL_SRC_FILES := \
Alc/android.o \
OpenAL32/alAuxEffectSlot.o \

View File

@ -15,10 +15,17 @@
#define HAVE_AUDIOTRACK 1
// For throttling AlSource.c
#ifndef MAX_SOURCES_LOW
#define MAX_SOURCES_LOW 4
#endif
#ifndef MAX_SOURCES_START
#define MAX_SOURCES_START 8
#endif
#ifndef MAX_SOURCES_HIGH
#define MAX_SOURCES_HIGH 64
#endif
#endif
/* Define if we have the ALSA backend */
/* #cmakedefine HAVE_ALSA */