aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/panning.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-03-09 23:43:57 -0800
committerChris Robinson <[email protected]>2016-03-09 23:43:57 -0800
commita45715751640992e8caeac8c36b5ecb23ba3c190 (patch)
tree5ae3f2d8611487be37ff1c52eb2eeabfc4b62d69 /Alc/panning.c
parent3e2672ec9f5c2a84a0f871bd0379ee387f9a95ce (diff)
Organize the dry buffer properties into a struct
Diffstat (limited to 'Alc/panning.c')
-rw-r--r--Alc/panning.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/Alc/panning.c b/Alc/panning.c
index b17df007..8ac1d4d2 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -426,9 +426,9 @@ static bool LoadChannelSetup(ALCdevice *device)
for(j = 0;j < MAX_AMBI_COEFFS;++j)
chanmap[i].Config[j] = coeffs[j];
}
- SetChannelMap(device->ChannelName, device->AmbiCoeffs, chanmap, count,
- &device->NumChannels, isfuma);
- device->AmbiScale = ambiscale;
+ SetChannelMap(device->Dry.ChannelName, device->Dry.AmbiCoeffs, chanmap, count,
+ &device->Dry.NumChannels, isfuma);
+ device->Dry.AmbiScale = ambiscale;
return true;
}
@@ -499,9 +499,9 @@ ALvoid aluInitPanning(ALCdevice *device)
size_t count = 0;
ALuint i;
- device->AmbiScale = 1.0f;
- memset(device->AmbiCoeffs, 0, sizeof(device->AmbiCoeffs));
- device->NumChannels = 0;
+ device->Dry.AmbiScale = 1.0f;
+ memset(device->Dry.AmbiCoeffs, 0, sizeof(device->Dry.AmbiCoeffs));
+ device->Dry.NumChannels = 0;
if(device->Hrtf)
{
@@ -525,14 +525,14 @@ ALvoid aluInitPanning(ALCdevice *device)
ambiscale = FIRST_ORDER_SCALE;
for(i = 0;i < count;i++)
- device->ChannelName[i] = chanmap[i].ChanName;
+ device->Dry.ChannelName[i] = chanmap[i].ChanName;
for(;i < MAX_OUTPUT_CHANNELS;i++)
- device->ChannelName[i] = InvalidChannel;
- SetChannelMap(device->ChannelName, device->AmbiCoeffs, chanmap, count,
- &device->NumChannels, AL_TRUE);
- device->AmbiScale = ambiscale;
+ device->Dry.ChannelName[i] = InvalidChannel;
+ SetChannelMap(device->Dry.ChannelName, device->Dry.AmbiCoeffs, chanmap, count,
+ &device->Dry.NumChannels, AL_TRUE);
+ device->Dry.AmbiScale = ambiscale;
- for(i = 0;i < device->NumChannels;i++)
+ for(i = 0;i < device->Dry.NumChannels;i++)
{
int chan = GetChannelIdxByName(device, CubeInfo[i].Channel);
GetLerpedHrtfCoeffs(device->Hrtf, CubeInfo[i].Elevation, CubeInfo[i].Angle, 1.0f, 1.0f,
@@ -547,12 +547,12 @@ ALvoid aluInitPanning(ALCdevice *device)
ambiscale = FIRST_ORDER_SCALE;
for(i = 0;i < count;i++)
- device->ChannelName[i] = chanmap[i].ChanName;
+ device->Dry.ChannelName[i] = chanmap[i].ChanName;
for(;i < MAX_OUTPUT_CHANNELS;i++)
- device->ChannelName[i] = InvalidChannel;
- SetChannelMap(device->ChannelName, device->AmbiCoeffs, chanmap, count,
- &device->NumChannels, AL_TRUE);
- device->AmbiScale = ambiscale;
+ device->Dry.ChannelName[i] = InvalidChannel;
+ SetChannelMap(device->Dry.ChannelName, device->Dry.AmbiCoeffs, chanmap, count,
+ &device->Dry.NumChannels, AL_TRUE);
+ device->Dry.AmbiScale = ambiscale;
return;
}
@@ -611,9 +611,9 @@ ALvoid aluInitPanning(ALCdevice *device)
break;
}
- SetChannelMap(device->ChannelName, device->AmbiCoeffs, chanmap, count,
- &device->NumChannels, AL_TRUE);
- device->AmbiScale = ambiscale;
+ SetChannelMap(device->Dry.ChannelName, device->Dry.AmbiCoeffs, chanmap, count,
+ &device->Dry.NumChannels, AL_TRUE);
+ device->Dry.AmbiScale = ambiscale;
}
void aluInitEffectPanning(ALeffectslot *slot)