From 063ef9c2fccdf8ce4b0148a1a06de4b9234d86b8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 30 Jan 2016 07:13:07 -0800 Subject: Properly silence the LFE input channel gain on the source sends --- Alc/ALu.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Alc/ALu.c') diff --git a/Alc/ALu.c b/Alc/ALu.c index d152b343..8108e7c2 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -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; } -- cgit v1.2.3