aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-04-16 17:21:31 -0700
committerChris Robinson <[email protected]>2016-04-16 17:21:31 -0700
commit3b571e03aba0edd10090ff01ec3193d43b2a8f47 (patch)
tree33ced94b48fadb57f1091f5922de646f8c0b99a7 /Alc/ALu.c
parentd2e8fae005409d5fae0248c80ca252c79be56f99 (diff)
Avoid storing channel names for the dry buffer
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 769ea627..6d07afe2 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -652,11 +652,14 @@ ALvoid CalcNonAttnSourceParams(ALvoice *voice, const ALsource *ALSource, const A
/* Special-case LFE */
if(chans[c].channel == LFE)
{
- int idx;
for(j = 0;j < MAX_OUTPUT_CHANNELS;j++)
voice->Direct.Gains[c].Target[j] = 0.0f;
- if((idx=GetChannelIdxByName(Device->Dry, chans[c].channel)) != -1)
- voice->Direct.Gains[c].Target[idx] = DryGain;
+ if(Device->Dry.Buffer == Device->RealOut.Buffer)
+ {
+ int idx;
+ if((idx=GetChannelIdxByName(Device->RealOut, chans[c].channel)) != -1)
+ voice->Direct.Gains[c].Target[idx] = DryGain;
+ }
for(i = 0;i < NumSends;i++)
{