aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-01-25 19:54:50 -0800
committerChris Robinson <[email protected]>2009-01-25 19:54:50 -0800
commitf5b19fad20290efec31da4ab6b9638137bb86961 (patch)
treee5bc2cf43124f336a2d72d2e92987d704352508a /Alc
parentbc60818e9a12c026219e1a6608cee6cca1f82b11 (diff)
Duplicate stereo onto the side channels as well as the back
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 8835a2d3..70570666 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -1109,7 +1109,10 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma
DryBuffer[j][FRONT_RIGHT] += samp2*DrySend[FRONT_RIGHT];
if(DuplicateStereo)
{
- //Duplicate stereo channels on the back speakers
+ //Duplicate stereo channels on the side and
+ //back speakers
+ DryBuffer[j][SIDE_LEFT] += samp1*DrySend[SIDE_LEFT];
+ DryBuffer[j][SIDE_RIGHT] += samp2*DrySend[SIDE_RIGHT];
DryBuffer[j][BACK_LEFT] += samp1*DrySend[BACK_LEFT];
DryBuffer[j][BACK_RIGHT] += samp2*DrySend[BACK_RIGHT];
}