aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/effects/dedicated.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/Alc/effects/dedicated.c b/Alc/effects/dedicated.c
index 20acfdcf..12b16137 100644
--- a/Alc/effects/dedicated.c
+++ b/Alc/effects/dedicated.c
@@ -77,16 +77,12 @@ static ALvoid ALdedicatedState_update(ALdedicatedState *state, const ALCdevice *
}
else
{
+ ALfloat coeffs[MAX_AMBI_COEFFS];
+ CalcXYZCoeffs(0.0f, 0.0f, -1.0f, coeffs);
+
STATIC_CAST(ALeffectState,state)->OutBuffer = device->Dry.Buffer;
STATIC_CAST(ALeffectState,state)->OutChannels = device->Dry.NumChannels;
- if((idx=GetChannelIdxByName(device->Dry, FrontCenter)) != -1)
- state->gains[idx] = Gain;
- else
- {
- ALfloat coeffs[MAX_AMBI_COEFFS];
- CalcXYZCoeffs(0.0f, 0.0f, -1.0f, coeffs);
- ComputePanningGains(device->Dry, coeffs, Gain, state->gains);
- }
+ ComputePanningGains(device->Dry, coeffs, Gain, state->gains);
}
}
}