If there are no sources, have a more sensible cap on the number of sources

master
Marc Salem 2012-07-17 13:54:53 -07:00
parent 8c6cc6ba4c
commit b05a172f24
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -16,6 +16,7 @@
// For throttling AlSource.c
#define MAX_SOURCES_LOW 1
#define MAX_SOURCES_START 8
#define MAX_SOURCES_HIGH 64
#endif