From 8940bbd034177182bb6fc1e3953e57674e488309 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 3 Sep 2019 23:19:24 -0700 Subject: Only use one accumulation buffer for B-Format HRTF mixing It's all getting added together anyway and all channels are continuous inputs, so this is fewer passes over various buffers. --- alc/hrtf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alc/hrtf.cpp') diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp index 5446c412..c0e2b982 100644 --- a/alc/hrtf.cpp +++ b/alc/hrtf.cpp @@ -438,7 +438,7 @@ void BuildBFormatHrtf(const HrtfEntry *Hrtf, DirectHrtfState *state, const ALuin { auto copy_arr = [](const std::array &in) noexcept -> float2 { return float2{{static_cast(in[0]), static_cast(in[1])}}; }; - std::transform(tmpres[i].begin(), tmpres[i].end(), state->Chan[i].Coeffs.begin(), + std::transform(tmpres[i].begin(), tmpres[i].end(), state->Coeffs[i].begin(), copy_arr); } tmpres.clear(); -- cgit v1.2.3