aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
Diffstat (limited to 'alc')
-rw-r--r--alc/alu.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp
index bec01164..f501bfc0 100644
--- a/alc/alu.cpp
+++ b/alc/alu.cpp
@@ -743,9 +743,12 @@ void CalcPanningAndFilters(ALvoice *voice, const ALfloat xpos, const ALfloat ypo
break;
case FmtStereo:
- /* Convert counter-clockwise to clockwise. */
- StereoMap[0].angle = -props->StereoPan[0];
- StereoMap[1].angle = -props->StereoPan[1];
+ if(!DirectChannels)
+ {
+ /* Convert counter-clockwise to clockwise. */
+ StereoMap[0].angle = -props->StereoPan[0];
+ StereoMap[1].angle = -props->StereoPan[1];
+ }
chans = StereoMap;
downmix_gain = 1.0f / 2.0f;