From db026454f28f93fe7c38dc84a79813a59afeb1d0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 30 Jun 2019 16:12:43 -0700 Subject: Fix Y channel offset for the UHJ encoder --- Alc/uhjfilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc') diff --git a/Alc/uhjfilter.cpp b/Alc/uhjfilter.cpp index c2657f9f..55999647 100644 --- a/Alc/uhjfilter.cpp +++ b/Alc/uhjfilter.cpp @@ -75,7 +75,7 @@ void Uhj2Encoder::encode(FloatBufferLine &LeftOut, FloatBufferLine &RightOut, Fl ASSUME(todo > 0); /* D = 0.6554516*Y */ - std::transform(yinput+base, yinput+todo, std::begin(temp), + std::transform(yinput, yinput+todo, std::begin(temp), [](const float y) noexcept -> float { return 0.6554516f*y; }); allpass_process(&mFilter1_Y[0], temp, temp, Filter1CoeffSqr[0], todo); allpass_process(&mFilter1_Y[1], temp, temp, Filter1CoeffSqr[1], todo); -- cgit v1.2.3