aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r--Alc/alu.cpp7
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)