aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-04-16 14:11:10 -0700
committerChris Robinson <[email protected]>2016-04-16 14:11:10 -0700
commitd2e8fae005409d5fae0248c80ca252c79be56f99 (patch)
tree73bad1e86bf4ed8998de8edc4c83295a9fc2f8d4 /Alc
parentd1f3a154704007ac06b480d0e454f231a17f6ae6 (diff)
Don't look up the dry buffer's FrontCenter in the Dedicated effect
The real FrontCenter output is used if it exists, and if it doesn't, it's unlikely the dry buffer will have it (and even if it does, it won't be any better than panning).
Diffstat (limited to 'Alc')
-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);
}
}
}