From 69be02c0fdba3cda8319a6299de1d45b5c695735 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 3 Jul 2011 03:18:18 -0700 Subject: Set the default auxiliary sends to MAX_SENDS Since the property is ALC_MAX_AUXILIARY_SENDS, it makes more sense to default it to the maximum and let the app lower it on request. --- Alc/ALc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/ALc.c b/Alc/ALc.c index 6d9deb45..b0842819 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -2652,7 +2652,7 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName) device->NumStereoSources = 1; device->NumMonoSources = device->MaxNoOfSources - device->NumStereoSources; - device->NumAuxSends = GetConfigValueInt(NULL, "sends", 1); + device->NumAuxSends = GetConfigValueInt(NULL, "sends", MAX_SENDS); if(device->NumAuxSends > MAX_SENDS) device->NumAuxSends = MAX_SENDS; @@ -2816,7 +2816,7 @@ ALC_API ALCdevice* ALC_APIENTRY alcLoopbackOpenDeviceSOFT(void) device->NumStereoSources = 1; device->NumMonoSources = device->MaxNoOfSources - device->NumStereoSources; - device->NumAuxSends = GetConfigValueInt(NULL, "sends", 1); + device->NumAuxSends = GetConfigValueInt(NULL, "sends", MAX_SENDS); if(device->NumAuxSends > MAX_SENDS) device->NumAuxSends = MAX_SENDS; -- cgit v1.2.3