Chris Robinson
613145e900
Calculate the correct evidx for the HRTF B-Format decoder
2019-01-29 03:52:28 -08:00
Chris Robinson
44d72942fb
Load and use all available HRTF fields
2019-01-29 00:42:18 -08:00
Chris Robinson
4c740636c2
Pass the distance to GetHrtfCoeffs
2019-01-28 22:22:34 -08:00
Chris Robinson
2d93a9cdb1
Collect HRTF field info into a struct
2019-01-28 20:43:34 -08:00
Chris Robinson
df5d238e3d
Clean up calculating HRIR indices to blend
2019-01-28 19:39:45 -08:00
Chris Robinson
98be1d1bf5
Make IncRef and DecRef member functions
2019-01-24 10:05:37 -08:00
Chris Robinson
e332ac8528
Use the farthest of multi-field HRTFs
2019-01-22 21:36:40 -08:00
Chris Robinson
b4a2532ffc
Partially allow loading of multi-field HRTFs
...
Only the first field actually gets used, but all the data is processed when
loading.
2019-01-22 10:27:04 -08:00
Chris Robinson
d64eaba322
Use a flexible array for DirectHrtfState and ALvoice
2019-01-12 01:25:33 -08:00
Chris Robinson
ab16671466
Use a flexible array for HrtfHandle and SampleConverter
2019-01-11 22:09:57 -08:00
Chris Robinson
673983dc5d
Make Create methods for structs with flexible array members ...
...
... that are used with unique_ptr.
2019-01-08 23:44:08 -08:00
Chris Robinson
0c3662d8b2
Fix some comments and reduce indentation
2019-01-08 17:21:22 -08:00
Filip Gawin
0d3a0635d9
Avoid using old style casts
...
To think about:
examples/alffplay.cpp:600
OpenAL32/Include/alMain.h:295
2019-01-08 19:42:44 +01:00
Chris Robinson
13056b45b0
Revert back to using a band-splitter to increase the HF response
...
Unfortunately the shelf filter causes issues due to the shelf gain magnitude
creating a varying phase offset. The splitter also creates phase offsets, but
it's consistent regardless of gain.
2019-01-06 05:15:11 -08:00
Chris Robinson
da3a916042
Replace macros with constexpr inline functions
2019-01-06 04:16:51 -08:00
Chris Robinson
98f3e6a162
Remove an unnecessary undef
2019-01-06 02:49:24 -08:00
Chris Robinson
e645d25b62
Use double-precision biquads for the HRTF shelf filters
2019-01-06 00:54:39 -08:00
Chris Robinson
03aeb7edf6
Use a shelf filter for the HRTF B-Format decoder HF scale
2019-01-06 00:23:15 -08:00
Chris Robinson
2f1566e0b4
Add and use a make_unique function
2019-01-01 14:33:01 -08:00
Chris Robinson
87724db6e3
Rename a couple HRTF structs
2018-12-22 09:20:50 -08:00
Chris Robinson
985d03d13d
Try to help GetHrtfCoeffs vectorize
2018-12-21 21:07:42 -08:00
Chris Robinson
5e4378f30a
Small cleanup for BuildBFormatHrtf
2018-12-21 18:17:59 -08:00
Chris Robinson
3553ce1f67
Don't convert the HRTF decoder virtual speaker positions to radians
2018-12-21 08:55:22 -08:00
Chris Robinson
0d73b13f59
Add more casts for MSVC
2018-12-12 21:58:41 -08:00
Chris Robinson
d7d9870839
Add default construction to HrtfEntry
2018-12-09 13:36:13 -08:00
Chris Robinson
621f0dfe73
Use a vector for LoadedHrtfs
2018-12-09 03:04:18 -08:00
Chris Robinson
e5db9b2378
Avoid static global initialization functions
2018-12-08 21:58:44 -08:00
Chris Robinson
e60d0886d0
Use class methods for BandSplitter and SplitterAllpass filters
2018-12-05 15:38:05 -08:00
Chris Robinson
9e10f632c7
Replace remaining uses of std::vector with al::vector
...
Which uses a custom allocator that uses our allocation functions.
2018-11-24 16:58:49 -08:00
Chris Robinson
c5142530d6
Simplify the RefCount type
2018-11-19 02:17:06 -08:00
Chris Robinson
becbaab2dc
Remove some unnecessary static specifiers
2018-11-18 22:14:44 -08:00
Chris Robinson
e23796aabe
Use a standard string for the enumerated HRTF names
2018-11-18 21:18:19 -08:00
Chris Robinson
2c06ec7093
Use a regular vector for the enumerated HRTF list
2018-11-18 19:19:35 -08:00
Chris Robinson
7b3a2085aa
Use a regular char* for the device's name
2018-11-15 06:23:01 -08:00
Chris Robinson
ab9f8162b8
Pass a normal const char* to EnumerateHrtf
2018-11-15 05:38:27 -08:00
Chris Robinson
a6d780574d
Make the enumerated HRTF entry name a char*
...
Would ideally be a std::string with the HRTF name itself, but they're still
seen in C code.
2018-11-12 22:26:12 -08:00
Chris Robinson
51ed335833
Use C++ more with helpers.cpp
2018-11-11 19:17:40 -08:00
Chris Robinson
d8163a416a
Use C++ more in hrtf.cpp
2018-11-09 23:47:42 -08:00
Chris Robinson
db56fd5e3d
Convert hrtf.c to C++
2018-11-09 18:08:42 -08:00