Make source limits configurable
parent
6af28c7540
commit
0b27808644
|
@ -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 \
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue