From 28d2294b0782d47f0be9e1479e7eb9ff91ae54f0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 29 Dec 2019 21:49:29 -0800 Subject: [PATCH] Workaround for MSVC 2015 --- alc/hrtf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp index 179938e0..8d1342fd 100644 --- a/alc/hrtf.cpp +++ b/alc/hrtf.cpp @@ -411,7 +411,7 @@ void BuildBFormatHrtf(const HrtfStore *Hrtf, DirectHrtfState *state, * sample array. This produces the forward response with a backwards * phase-shift (+n degrees becomes -n degrees). */ - splitter.applyAllpass(tempir); + splitter.applyAllpass({tempir.data(), tempir.size()}); std::reverse(tempir.begin(), tempir.end()); /* Now apply the band-splitter. This applies the normal phase-shift, @@ -436,7 +436,7 @@ void BuildBFormatHrtf(const HrtfStore *Hrtf, DirectHrtfState *state, std::transform(hrir.cbegin(), hrir.cend(), tempir.rbegin() + HRIR_LENGTH*3, [](const double2 &ir) noexcept -> double { return ir[1]; }); - splitter.applyAllpass(tempir); + splitter.applyAllpass({tempir.data(), tempir.size()}); std::reverse(tempir.begin(), tempir.end()); splitter.clear();