diff options
author | Chris Robinson <[email protected]> | 2009-01-25 19:54:50 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-01-25 19:54:50 -0800 |
commit | f5b19fad20290efec31da4ab6b9638137bb86961 (patch) | |
tree | e5bc2cf43124f336a2d72d2e92987d704352508a /Alc/ALu.c | |
parent | bc60818e9a12c026219e1a6608cee6cca1f82b11 (diff) |
Duplicate stereo onto the side channels as well as the back
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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]; } |