aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index ccaa5fe5..30cd727f 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -302,7 +302,9 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource,
// Source Gain + Attenuation
DryMix = SourceVolume * flAttenuation;
- WetMix = SourceVolume * (ALSource->WetGainAuto ? RoomAttenuation : 1.0f);
+ WetMix = SourceVolume * ((ALSource->WetGainAuto &&
+ ALSource->Send[0].Slot.AuxSendAuto) ?
+ RoomAttenuation : 1.0f);
// Clamp to Min/Max Gain
DryMix = __min(DryMix,MaxVolume);