diff options
author | Chris Robinson <[email protected]> | 2019-02-04 22:17:28 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-02-04 22:17:28 -0800 |
commit | b371862fb29c0b2fe0ad0b89370a055a1771ae0f (patch) | |
tree | 2a3821d04a013569cd7948f43ba3c8ee74222c8b /Alc | |
parent | 05cdc2cb3002e0c9a20764a1e4e6a0e4de5e809e (diff) |
Simply setting a couple indices
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/alu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp index 5742a925..86ad1d05 100644 --- a/Alc/alu.cpp +++ b/Alc/alu.cpp @@ -163,7 +163,7 @@ void ProcessUhj(ALCdevice *device, const ALsizei SamplesToDo) { /* UHJ is stereo output only. */ const int lidx{(device->RealOut.ChannelName[0]==FrontLeft) ? 0 : 1}; - const int ridx{(device->RealOut.ChannelName[1]==FrontRight) ? 1 : 0}; + const int ridx{(device->RealOut.ChannelName[0]==FrontLeft) ? 1 : 0}; /* Encode to stereo-compatible 2-channel UHJ output. */ Uhj2Encoder *uhj2enc{device->Uhj_Encoder.get()}; @@ -175,7 +175,7 @@ void ProcessBs2b(ALCdevice *device, const ALsizei SamplesToDo) { /* BS2B is stereo output only. */ const int lidx{(device->RealOut.ChannelName[0]==FrontLeft) ? 0 : 1}; - const int ridx{(device->RealOut.ChannelName[1]==FrontRight) ? 1 : 0}; + const int ridx{(device->RealOut.ChannelName[0]==FrontLeft) ? 1 : 0}; /* Apply binaural/crossfeed filter */ bs2b_cross_feed(device->Bs2b.get(), device->RealOut.Buffer[lidx], |