diff options
author | Chris Robinson <[email protected]> | 2018-12-26 13:20:59 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-26 13:20:59 -0800 |
commit | 5c449de73f491a73cbc948b3301b8305f20be648 (patch) | |
tree | 9f790202d0096f399820ff189615f58990eef74a /Alc/alu.cpp | |
parent | 3b9defa4afcbfa96b47cb528d91abb65416d4330 (diff) |
Improve UHJ2 encoding
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r-- | Alc/alu.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp index 861932c9..2490f0cb 100644 --- a/Alc/alu.cpp +++ b/Alc/alu.cpp @@ -169,10 +169,9 @@ void ProcessUhj(ALCdevice *device, ALsizei SamplesToDo) const int ridx{(device->RealOut.ChannelName[1]==FrontRight) ? 1 : 0}; /* Encode to stereo-compatible 2-channel UHJ output. */ - EncodeUhj2(device->Uhj_Encoder.get(), - device->RealOut.Buffer[lidx], device->RealOut.Buffer[ridx], - device->Dry.Buffer, SamplesToDo - ); + Uhj2Encoder *uhj2enc{device->Uhj_Encoder.get()}; + uhj2enc->encode(device->RealOut.Buffer[lidx], device->RealOut.Buffer[ridx], + device->Dry.Buffer, SamplesToDo); } void ProcessBs2b(ALCdevice *device, ALsizei SamplesToDo) |