diff options
author | Chris Robinson <[email protected]> | 2016-04-16 17:21:31 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-04-16 17:21:31 -0700 |
commit | 3b571e03aba0edd10090ff01ec3193d43b2a8f47 (patch) | |
tree | 33ced94b48fadb57f1091f5922de646f8c0b99a7 /Alc/ALu.c | |
parent | d2e8fae005409d5fae0248c80ca252c79be56f99 (diff) |
Avoid storing channel names for the dry buffer
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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++) { |