aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-04-11 18:16:05 -0700
committerChris Robinson <[email protected]>2009-04-11 18:16:05 -0700
commit30f57d0824826c38d8991f041ea8870e19b44033 (patch)
tree56a9ccc9e009a56853aeba1654aca5b92bdc94df /Alc
parent1c540181116a875f708890bc9c380b71cd1fd6ba (diff)
Make auxiliary effect slot count configurable
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 574de769..943201f6 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -479,6 +479,8 @@ static ALvoid InitContext(ALCcontext *pContext)
pContext->lNumStereoSources = 1;
pContext->lNumMonoSources = pContext->Device->MaxNoOfSources - pContext->lNumStereoSources;
+ pContext->AuxiliaryEffectSlotMax = GetConfigValueInt(NULL, "slots", 4);
+
pContext->ExtensionList = "AL_EXTX_buffer_sub_data AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET AL_EXTX_source_distance_model AL_LOKI_quadriphonic";
level = GetConfigValueInt(NULL, "cf_level", 0);