aboutsummaryrefslogtreecommitdiffstats
path: root/utils/makemhr/loaddef.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Implement our own cache for MYSOFA_EASY objectsChris Robinson2023-12-311-14/+39
| | | | | | | This is to both fix the potential issue of libmysofa calling free() on memory we allocated with calloc (which can be an issue if it linked to a different C runtime), and work around the code checker thinking the MYSOFA_EASY object leaks when mysofa_close and mysofa_cache_store are taking ownership of it.
* Clean up some gotos and non-optimal castsChris Robinson2023-12-261-2/+4
|
* Fix implicit widening after multiplicationChris Robinson2023-12-231-10/+11
|
* Fix clang-tidy warnings from the examples and utilitiesChris Robinson2023-12-131-74/+79
|
* Much more clang-tidy cleanupChris Robinson2023-12-101-199/+186
|
* Use deduction guides instead of helper functions for spansChris Robinson2023-05-051-1/+1
|
* Replace al::optional with std::optionalChris Robinson2023-05-041-3/+2
|
* Make sure a variable is set before useChris Robinson2023-01-311-3/+3
|
* Replace a couple more pointer+count with a spanChris Robinson2023-01-231-22/+22
|
* Use a vector of arrays for a multi-dimensional arrayChris Robinson2023-01-231-4/+6
|
* Use a span instead of pointer+countChris Robinson2023-01-231-2/+2
|
* Remove a redundant struct memberChris Robinson2023-01-231-6/+6
|
* Resample before frequency analysisChris Robinson2022-05-131-23/+53
| | | | | | | | | | We want to resample before minimum phase reconstruction since that changes the phase relationship of the sampled signal, introducing a slight bit of noise from truncated sampling. It's not clear that the frequency domain resampling method is accurate, so resampling prior to frequency analysis is an alternative to ensure the resulting frequencies are given the proper phase for sampling. This also cleans up some micro allocations in loops.
* Add missing <cstdarg>ArthurSonzogni2020-04-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | OpenAL-Soft fails to compile on some GCC version: https://travis-ci.com/github/ArthurSonzogni/smk/jobs/318304162 It has regressed likely after: https://github.com/kcat/openal-soft/commit/c83609277bed4be4ef40ed306bf2c57fefa19519 va_start is defined in: - <stdarg.h> - <cstdarg> The repository is using it from: - al/error.cpp - al/filter.cpp - alc/alu.cpp - alc/helpers.cpp - common/alexcpt.cpp - utils/makemhr/loaddef.cpp - utils/openal-info.c This patch is adding its definition in the files missing it: - common/alexcpt.cpp - utils/makemhr/loaddef.cpp - utils/openal-info.c Bug: https://travis-ci.com/github/ArthurSonzogni/smk/jobs/318304162
* Use the peak IR magnitude to get the onsetChris Robinson2020-01-251-12/+4
| | | | | | | | | | | | While maybe not technically correct, we actually only care about the difference between onsets (any base constant is removed). This should work better since it determines when the IR is most audible, whereas previously it used a variable threshold of when it reached 15% of the max amplitude. An even better method may be to check where the IR amplitude exceeds a fixed threshold (i.e. the same threshold applied to all IRs), but that would need tweaking to find a level that doesn't catch random noise and doesn't potentially miss the more occluded IRs.
* Move the polyphase resampler to the common libChris Robinson2019-11-281-3/+3
|
* Use istream for makemhr inputChris Robinson2019-09-231-124/+131
|
* Use our case-insensitive compare functions in makemhrChris Robinson2019-09-161-19/+20
|
* Enable and fix more warningsChris Robinson2019-09-141-5/+4
|
* Avoid C-style casts in C++Chris Robinson2019-09-111-6/+6
|
* Fix some implicit castsChris Robinson2019-09-111-8/+8
|
* Add missing header.Penguin2019-07-141-0/+1
|
* Add a missing include for varargsChris Robinson2019-03-261-0/+1
|
* Detect SOFA files for makemhr inputChris Robinson2019-03-251-4/+11
|
* Use only a single function to load the HrirDataTChris Robinson2019-03-251-3/+42
|
* Add a command-line option to force mono input with makemhrChris Robinson2019-03-241-1/+6
|
* Cleanup some unnecessary parametersChris Robinson2019-03-241-7/+4
|
* Move makemhr's .def loading code to a separate sourceChris Robinson2019-03-241-0/+1976
|
* Rename makehrtf to makemhr and move it to a subdirectoryChris Robinson2019-03-241-0/+0