From b05a172f24b373c8ea1b24850860d17e03537f51 Mon Sep 17 00:00:00 2001 From: Marc Salem Date: Tue, 17 Jul 2012 13:54:53 -0700 Subject: [PATCH] If there are no sources, have a more sensible cap on the number of sources --- jni/OpenAL/Alc/ALu.c | 2 +- jni/OpenAL/include/config.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/jni/OpenAL/Alc/ALu.c b/jni/OpenAL/Alc/ALu.c index aaa6aed..36c8818 100644 --- a/jni/OpenAL/Alc/ALu.c +++ b/jni/OpenAL/Alc/ALu.c @@ -1061,7 +1061,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) alc_max_sources = max; } } else { - alc_max_sources = MAX_SOURCES_LOW; + alc_max_sources = MAX_SOURCES_START; } #else aluMixDataPrivate(device, buffer, size); diff --git a/jni/OpenAL/include/config.h b/jni/OpenAL/include/config.h index dba48c4..4c607e0 100755 --- a/jni/OpenAL/include/config.h +++ b/jni/OpenAL/include/config.h @@ -16,6 +16,7 @@ // For throttling AlSource.c #define MAX_SOURCES_LOW 1 +#define MAX_SOURCES_START 8 #define MAX_SOURCES_HIGH 64 #endif