diff options
author | Chris Robinson <[email protected]> | 2019-09-03 23:19:24 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-03 23:19:24 -0700 |
commit | 8940bbd034177182bb6fc1e3953e57674e488309 (patch) | |
tree | c0c51246eaae406d7fbf9514e8d699c7c0dfcc9b /alc/hrtf.cpp | |
parent | e1ee1bcde907e0021de38c1823fb5a67d49ebae9 (diff) |
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.
Diffstat (limited to 'alc/hrtf.cpp')
-rw-r--r-- | alc/hrtf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<double,2> &in) noexcept -> float2 { return float2{{static_cast<float>(in[0]), static_cast<float>(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(); |