From 2847590d454f4fa51ec2561d47d2872bf01997d5 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 23 Mar 2016 15:11:33 -0700 Subject: Simplify setting a custom channel map configuration --- Alc/panning.c | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/Alc/panning.c b/Alc/panning.c index 9c504b04..8d66df04 100644 --- a/Alc/panning.c +++ b/Alc/panning.c @@ -430,30 +430,20 @@ static bool LoadChannelSetup(ALCdevice *device) { ALuint chan = speakermap[i]; ALuint j, k = 0; + ALfloat gain; for(j = 0;j < MAX_AMBI_COEFFS;j++) chanmap[i].Config[j] = 0.0f; chanmap[i].ChanName = device->RealOut.ChannelName[chan]; - for(j = 0;j < 1;j++) - { - if((conf.ChanMask&(1<