aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-31 19:40:24 -0800
committerChris Robinson <[email protected]>2007-12-31 19:40:24 -0800
commit4e2f8e305ec9d738c04aa07dc20e79c2672ec455 (patch)
tree2ff211ac8e6fec4790163fa55c3be88185c4eb25
parent3d78d93b4033ea94d38981e75f10c6dee5264860 (diff)
Fix wet volumes for multichannel path
-rw-r--r--Alc/ALu.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index f401046c..11cbc6b2 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -559,6 +559,17 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource,
wetsend[BACK_RIGHT] = SourceVolume * 0.0f * ListenerGain;
wetsend[CENTER] = SourceVolume * 0.0f * ListenerGain;
wetsend[LFE] = SourceVolume * 0.0f * ListenerGain;
+ }
+ else
+ {
+ wetsend[FRONT_LEFT] = 0.0f;
+ wetsend[FRONT_RIGHT] = 0.0f;
+ wetsend[SIDE_LEFT] = 0.0f;
+ wetsend[SIDE_RIGHT] = 0.0f;
+ wetsend[BACK_LEFT] = 0.0f;
+ wetsend[BACK_RIGHT] = 0.0f;
+ wetsend[CENTER] = 0.0f;
+ wetsend[LFE] = 0.0f;
*wetgainhf = 1.0f;
}