diff options
author | Chris Robinson <[email protected]> | 2016-01-30 07:13:07 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-01-30 07:13:07 -0800 |
commit | 063ef9c2fccdf8ce4b0148a1a06de4b9234d86b8 (patch) | |
tree | 9bf0b0c1e8a3c52970d22100952106a8eef0c1d9 | |
parent | 729f213c09f7046554ba4aa05473c33edb3ee406 (diff) |
Properly silence the LFE input channel gain on the source sends
-rw-r--r-- | Alc/ALu.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -872,6 +872,14 @@ ALvoid CalcNonAttnSourceParams(ALvoice *voice, const ALsource *ALSource, const A gains[i].Target = 0.0f; if((idx=GetChannelIdxByName(Device, chans[c].channel)) != -1) gains[idx].Target = DryGain; + + for(i = 0;i < NumSends;i++) + { + MixGains *gains = voice->Send[i].Gains[c]; + ALuint j; + for(j = 0;j < MAX_EFFECT_CHANNELS;j++) + gains[j].Target = 0.0f; + } continue; } |