aboutsummaryrefslogtreecommitdiffstats
path: root/core/hrtf.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Avoid casting an integer literalChris Robinson2023-09-221-1/+1
|
* Use inline variables instead of functions with static variablesChris Robinson2023-06-141-1/+1
|
* Avoid using al::vector unnecessarilyChris Robinson2023-05-121-26/+26
|
* Use deduction guides instead of helper functions for spansChris Robinson2023-05-051-1/+1
|
* Use std::byte instead of a custom al::byteChris Robinson2023-05-041-3/+3
|
* Replace al::optional with std::optionalChris Robinson2023-05-041-2/+2
|
* Mask a value to the proper size when setting a bitfieldChris Robinson2023-05-011-2/+2
| | | | Silences a GCC warning about assigning a uint value to a uint:24 bitfield.
* Check for nullptr before constructing a new objectChris Robinson2023-01-151-5/+5
|
* Use an 8-bit type to hand the HrtfStore IR sizeChris Robinson2023-01-151-7/+7
| | | | | Since the max IR size is 128, and HrtfStore only uses 8 bits for the IR size member. Silences a truncation warning given by GCC.
* clang-tidy cleanups (#800)Rosen Penev2023-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * clang-tidy: use bool literals Found with modernize-use-bool-literals Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: replace std::bind with lambdas Found with modernize-avoid-bind Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: use data() instead of pointer stuff Found with readability-container-data-pointe Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: use empty() Found with readability-container-size-empty Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: remove static in anon namespace Found with readability-static-definition-in-anonymous-namespace Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: remove const return Found with readability-const-return-type Signed-off-by: Rosen Penev <[email protected]> Signed-off-by: Rosen Penev <[email protected]>
* Don't include the array definition with bin2hChris Robinson2023-01-131-1/+3
|
* Use a span instead of a count+pointerChris Robinson2023-01-111-8/+5
|
* Rename some struct membersChris Robinson2023-01-101-54/+57
| | | | And make a related function a member function
* Multiply by the inverse instead of divideChris Robinson2023-01-011-4/+4
|
* Avoid inlining LoadedHrtf's destructorChris Robinson2022-12-171-0/+7
|
* Avoid extraneous temporaries when filling vectorsChris Robinson2022-12-151-1/+6
|
* Rename a potentially confusing member functionChris Robinson2022-12-081-1/+1
|
* Use standard likely/unlikely attributes when availableChris Robinson2022-12-051-1/+1
|
* Use an icosahedron for 3D second-orderChris Robinson2022-09-011-3/+2
|
* Simplify calculating nearest HRIR indexChris Robinson2022-08-021-8/+1
|
* Silence an inline failure warning with GCCChris Robinson2022-07-191-0/+4
|
* Avoid duplicate initializations for multiple filtersChris Robinson2022-07-171-1/+2
| | | | Just initialize the first and copy it to the others.
* Replace a few asserts with actual checks or ASSUME()Chris Robinson2022-03-301-1/+2
|
* Avoid using an if_constexpr macroChris Robinson2022-02-221-19/+34
| | | | | It doesn't actually use if constexpr, and compilers are smart enough to optimize. Some functions can use templates instead.
* Get rid of MathDefsChris Robinson2022-01-271-7/+7
|
* Make a construct_at method amd use itChris Robinson2021-10-081-11/+10
|
* Update some more includesChris Robinson2021-04-241-2/+2
|
* Move hrtf.cpp/h to coreChris Robinson2021-04-221-0/+1447