aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-11-22 12:58:54 -0800
committerChris Robinson <[email protected]>2014-11-22 12:58:54 -0800
commitfb511351dfe1db70af47b27dfded83d588f61faf (patch)
treee38d317421f7d5d18c7e3018ee02c327c1d01192 /Alc/ALu.c
parente41cfeca840f36f4d360fd86b86ee2087940c1e1 (diff)
Remove an unnecessary union container
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 7ec6183d..57af55bf 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -145,7 +145,7 @@ static void UpdateDryStepping(DirectParams *params, ALuint num_chans)
{
for(i = 0;i < num_chans;i++)
{
- MixGains *gains = params->Mix.Gains[i];
+ MixGains *gains = params->Gains[i];
for(j = 0;j < MAX_OUTPUT_CHANNELS;j++)
{
gains[j].Current = gains[j].Target;
@@ -159,7 +159,7 @@ static void UpdateDryStepping(DirectParams *params, ALuint num_chans)
for(i = 0;i < num_chans;i++)
{
- MixGains *gains = params->Mix.Gains[i];
+ MixGains *gains = params->Gains[i];
for(j = 0;j < MAX_OUTPUT_CHANNELS;j++)
{
ALfloat cur = maxf(gains[j].Current, FLT_EPSILON);
@@ -477,7 +477,7 @@ ALvoid CalcNonAttnSourceParams(ALvoice *voice, const ALsource *ALSource, const A
for(c = 0;c < num_channels;c++)
{
- MixGains *gains = voice->Direct.Mix.Gains[c];
+ MixGains *gains = voice->Direct.Gains[c];
ALfloat Target[MAX_OUTPUT_CHANNELS];
ComputeBFormatGains(Device, matrix[c], DryGain, Target);
@@ -497,7 +497,7 @@ ALvoid CalcNonAttnSourceParams(ALvoice *voice, const ALsource *ALSource, const A
{
for(c = 0;c < num_channels;c++)
{
- MixGains *gains = voice->Direct.Mix.Gains[c];
+ MixGains *gains = voice->Direct.Gains[c];
int idx;
for(j = 0;j < MAX_OUTPUT_CHANNELS;j++)
@@ -513,7 +513,7 @@ ALvoid CalcNonAttnSourceParams(ALvoice *voice, const ALsource *ALSource, const A
{
for(c = 0;c < num_channels;c++)
{
- MixGains *gains = voice->Direct.Mix.Gains[c];
+ MixGains *gains = voice->Direct.Gains[c];
ALfloat Target[MAX_OUTPUT_CHANNELS];
/* Special-case LFE */
@@ -916,7 +916,7 @@ ALvoid CalcSourceParams(ALvoice *voice, const ALsource *ALSource, const ALCconte
}
{
- MixGains *gains = voice->Direct.Mix.Gains[0];
+ MixGains *gains = voice->Direct.Gains[0];
ALfloat radius = ALSource->Radius;
ALfloat Target[MAX_OUTPUT_CHANNELS];