aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-04-14 22:56:54 -0700
committerChris Robinson <[email protected]>2017-04-14 23:50:49 -0700
commitd9bf4f7620c1e13846a53ee9df5c8c9eb2fcfe7d (patch)
treeb3ab3fb963b8fbc5dbcafe4c8a6ffbd9e72ec572 /OpenAL32
parentafb59e7f98f40cde77c150414a8a5bd13f40781a (diff)
Allow increasing the maximum source limit
If the requested number of mono and stereo sources exceeds 256, the source limit will be expanded. Any config file setting overrides this. If the device is reset to have fewer sources than are currently allocated, excess sources will remain and be usable as normal, but no more can be generated until enough are delated to go back below the limit.
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alAuxEffectSlot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c
index de7de943..3ec857ca 100644
--- a/OpenAL32/alAuxEffectSlot.c
+++ b/OpenAL32/alAuxEffectSlot.c
@@ -479,7 +479,7 @@ done:
void InitEffectFactoryMap(void)
{
- InitUIntMap(&EffectStateFactoryMap, ~0);
+ InitUIntMap(&EffectStateFactoryMap, INT_MAX);
InsertUIntMapEntry(&EffectStateFactoryMap, AL_EFFECT_NULL, ALnullStateFactory_getFactory);
InsertUIntMapEntry(&EffectStateFactoryMap, AL_EFFECT_EAXREVERB, ALreverbStateFactory_getFactory);