diff options
author | Chris Robinson <[email protected]> | 2023-12-25 05:21:42 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-12-25 05:21:42 -0800 |
commit | ec914e895ff6d7bf2d19e8c8785e5d8bfd38629f (patch) | |
tree | 80a5efc31bbc88d76bce3e7116d27dcf14390870 /utils/makemhr/loadsofa.cpp | |
parent | dae225e88dbf795e776a2c9f2dbe5bb07c2228b9 (diff) |
Use standard methods for rounding
Diffstat (limited to 'utils/makemhr/loadsofa.cpp')
-rw-r--r-- | utils/makemhr/loadsofa.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/makemhr/loadsofa.cpp b/utils/makemhr/loadsofa.cpp index c29cb45c..b2038c77 100644 --- a/utils/makemhr/loadsofa.cpp +++ b/utils/makemhr/loadsofa.cpp @@ -460,7 +460,7 @@ bool LoadSofaFile(const char *filename, const uint numThreads, const uint fftSiz /* Assume a default head radius of 9cm. */ hData->mRadius = 0.09; - hData->mIrRate = static_cast<uint>(GetSampleRate(sofaHrtf.get()) + 0.5f); + hData->mIrRate = static_cast<uint>(std::lround(GetSampleRate(sofaHrtf.get()))); if(!hData->mIrRate) return false; |