From a2edc95207b798f43ff6704c993617bb67e738f9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 21 Sep 2009 23:18:39 -0700 Subject: Properly set the number of sends requested by the app --- Alc/ALc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Alc/ALc.c b/Alc/ALc.c index 3a799dd9..e5cb8f6b 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -1189,8 +1189,8 @@ ALCAPI ALCcontext* ALCAPIENTRY alcCreateContext(ALCdevice *device, const ALCint { RequestedSends = attrList[ulAttributeIndex + 1]; - if(RequestedSends > device->NumAuxSends) - RequestedSends = device->NumAuxSends; + if(RequestedSends > MAX_SENDS) + RequestedSends = MAX_SENDS; numSends = RequestedSends; } @@ -1202,7 +1202,7 @@ ALCAPI ALCcontext* ALCAPIENTRY alcCreateContext(ALCdevice *device, const ALCint device->Frequency = GetConfigValueInt(NULL, "frequency", freq); device->lNumMonoSources = numMono; device->lNumStereoSources = numStereo; - device->NumAuxSends = numSends; + device->NumAuxSends = GetConfigValueInt(NULL, "sends", numSends); } free(device->Bs2b); -- cgit v1.2.3