Workaround for MSVC 2015

This commit is contained in:
Chris Robinson
2019-12-29 21:49:29 -08:00
parent 9fc2f8541b
commit 28d2294b07
+2 -2
View File
@@ -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();