diff options
author | Chris Robinson <[email protected]> | 2009-09-21 23:18:39 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-09-21 23:18:39 -0700 |
commit | a2edc95207b798f43ff6704c993617bb67e738f9 (patch) | |
tree | 145cb70aac4206aea3e4f0d72efaf103385cccfa /Alc/ALc.c | |
parent | 4cd41e3e08740165eb22a3220fdbc368bddc4cd2 (diff) |
Properly set the number of sends requested by the app
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |