aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-12-17 21:49:58 -0800
committerChris Robinson <[email protected]>2019-12-17 21:49:58 -0800
commit2215a4072c0a9db8bf13e9c59b13db396c93e1cd (patch)
tree3179489866035c68874c4f8bcc39bdc99f8d5d40 /alc
parentad9584acc32fb861824358d7df9a37ed5e7ae362 (diff)
Don't apply stereo panning with direct channels enabled
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;