From 313549c76d6049a9c36922a6b13724522b8aad58 Mon Sep 17 00:00:00 2001 From: Penguin Date: Sun, 14 Jul 2019 18:03:32 +0900 Subject: Add missing header. --- utils/makemhr/loaddef.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/makemhr/loaddef.cpp b/utils/makemhr/loaddef.cpp index d3962c16..28f2e1b0 100644 --- a/utils/makemhr/loaddef.cpp +++ b/utils/makemhr/loaddef.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include "mysofa.h" -- cgit v1.2.3 From 4027664fc2d73656d7ec223fb3946d501baa433f Mon Sep 17 00:00:00 2001 From: Penguin Date: Sun, 14 Jul 2019 18:03:49 +0900 Subject: Fixed MSVC error. --- utils/sofa-info.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/utils/sofa-info.cpp b/utils/sofa-info.cpp index e31ca654..c7c7a8f7 100644 --- a/utils/sofa-info.cpp +++ b/utils/sofa-info.cpp @@ -207,9 +207,7 @@ static void PrintCompatibleLayout(const uint m, const float *xyzs) mysofa_c2s(&aers[i]); } - uint fdCount{GetUniquelySortedElems(m, aers.data(), 2, - (const float*[3]){ nullptr, nullptr, nullptr }, (const float[3]){ 0.1f, 0.1f, 0.001f }, - elems.data())}; + uint fdCount{GetUniquelySortedElems(m, aers.data(), 2, { nullptr, nullptr, nullptr }, { 0.1f, 0.1f, 0.001f }, elems.data())}; if(fdCount > (m / 3)) { fprintf(stdout, "Incompatible layout (inumerable radii).\n"); @@ -223,9 +221,7 @@ static void PrintCompatibleLayout(const uint m, const float *xyzs) for(uint fi{0u};fi < fdCount;fi++) { float dist{fds[fi].mDistance}; - uint evCount{GetUniquelySortedElems(m, aers.data(), 1, - (const float*[3]){ nullptr, nullptr, &dist }, (const float[3]){ 0.1f, 0.1f, 0.001f }, - elems.data())}; + uint evCount{GetUniquelySortedElems(m, aers.data(), 1, { nullptr, nullptr, &dist }, { 0.1f, 0.1f, 0.001f }, elems.data())}; if(evCount > (m / 3)) { @@ -268,9 +264,7 @@ static void PrintCompatibleLayout(const uint m, const float *xyzs) for(uint ei{evStart};ei < evCount;ei++) { float ev{-90.0f + ei * 180.0f / (evCount - 1)}; - uint azCount{GetUniquelySortedElems(m, aers.data(), 0, - (const float*[3]){ nullptr, &ev, &dist }, (const float[3]){ 0.1f, 0.1f, 0.001f }, - elems.data())}; + uint azCount{GetUniquelySortedElems(m, aers.data(), 0, { nullptr, &ev, &dist }, { 0.1f, 0.1f, 0.001f }, elems.data())}; if(azCount > (m / 3)) { -- cgit v1.2.3