aboutsummaryrefslogtreecommitdiffstats
path: root/alc/hrtf.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-03 23:19:24 -0700
committerChris Robinson <[email protected]>2019-09-03 23:19:24 -0700
commit8940bbd034177182bb6fc1e3953e57674e488309 (patch)
treec0c51246eaae406d7fbf9514e8d699c7c0dfcc9b /alc/hrtf.cpp
parente1ee1bcde907e0021de38c1823fb5a67d49ebae9 (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.cpp2
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();