diff options
author | Chris Robinson <[email protected]> | 2023-01-23 01:32:27 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-01-23 01:32:27 -0800 |
commit | 1ca27df39cc7605b55ffd73cab93f6a174b8d421 (patch) | |
tree | 868c57201f009a04349ccc6446597d594697e91b /utils/makemhr/loaddef.cpp | |
parent | 952446ec11422bbb7e9fee2c3f35cb68aaf68fd2 (diff) |
Use a span instead of pointer+count
Diffstat (limited to 'utils/makemhr/loaddef.cpp')
-rw-r--r-- | utils/makemhr/loaddef.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/makemhr/loaddef.cpp b/utils/makemhr/loaddef.cpp index b6b62359..6b33d6c4 100644 --- a/utils/makemhr/loaddef.cpp +++ b/utils/makemhr/loaddef.cpp @@ -1239,7 +1239,7 @@ static int ProcessMetrics(TokenReaderT *tr, const uint fftSize, const uint trunc double distances[MAX_FD_COUNT]; uint fdCount = 0; uint evCounts[MAX_FD_COUNT]; - std::vector<uint> azCounts(MAX_FD_COUNT * MAX_EV_COUNT); + auto azCounts = std::vector<uint>(MAX_FD_COUNT * MAX_EV_COUNT); TrIndication(tr, &line, &col); while(TrIsIdent(tr)) @@ -1450,7 +1450,7 @@ static int ProcessMetrics(TokenReaderT *tr, const uint fftSize, const uint trunc } if(hData->mChannelType == CT_NONE) hData->mChannelType = CT_MONO; - if(!PrepareHrirData(fdCount, distances, evCounts, azCounts.data(), hData)) + if(!PrepareHrirData({distances, fdCount}, evCounts, azCounts.data(), hData)) { fprintf(stderr, "Error: Out of memory.\n"); exit(-1); |