From 0a4d1c858ec21b948838f5e9b464b5534d497bca Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 25 Mar 2019 20:16:02 -0700 Subject: Support loading SOFA files directly with makemhr This extracts the definition info it can from the SOFA, and uses the same logic as sofa-info to automatically detect an appropriate layout. There is a bit of code duplication from loaddef.cpp and sofa-info.cpp, though there are slight modifications. --- utils/makemhr/makemhr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/makemhr/makemhr.h') diff --git a/utils/makemhr/makemhr.h b/utils/makemhr/makemhr.h index 047813d8..24520bd2 100644 --- a/utils/makemhr/makemhr.h +++ b/utils/makemhr/makemhr.h @@ -102,7 +102,7 @@ struct HrirDataT { }; -int PrepareHrirData(const uint fdCount, const double distances[MAX_FD_COUNT], const uint evCounts[MAX_FD_COUNT], const uint azCounts[MAX_FD_COUNT * MAX_EV_COUNT], HrirDataT *hData); +int PrepareHrirData(const uint fdCount, const double (&distances)[MAX_FD_COUNT], const uint (&evCounts)[MAX_FD_COUNT], const uint azCounts[MAX_FD_COUNT * MAX_EV_COUNT], HrirDataT *hData); void MagnitudeResponse(const uint n, const complex_d *in, double *out); void FftForward(const uint n, complex_d *inout); void FftInverse(const uint n, complex_d *inout); -- cgit v1.2.3