Chris Robinson
1bb7f575f0
Don't modify the IR size of loaded HRTFs
2020-12-11 15:08:50 -08:00
Chris Robinson
50e33ce8f4
Change some macros into constexpr variables
2020-12-04 13:53:56 -08:00
Chris Robinson
c4132b80ed
Move a couple more things to core
2020-12-04 13:13:52 -08:00
Chris Robinson
b0919240ab
Move some sources to a separate directory
...
To begin separating the ALC interfaces from internal ones.
2020-11-27 19:18:17 -08:00
Chris Robinson
54afcbe113
Use clearer variable names
2020-11-20 22:02:20 -08:00
Chris Robinson
4e760bbecc
Use a separate structure for the active effect slot properties
2020-11-07 08:36:49 -08:00
Chris Robinson
120776bec5
Use a range-for loop instead of for_each
2020-11-06 15:44:49 -08:00
Chris Robinson
03389f390c
Avoid a full wipe and reallocation of wet buffers
2020-11-02 05:19:17 -08:00
Chris Robinson
52d58a4023
Store the wet buffers in the context
...
This is rather ugly, but we need the wet buffers to remain allocated after its
effect slot is deleted, because a voice can still use it for its final fade-out
mix.
2020-11-02 04:24:36 -08:00
Chris Robinson
3e62600ecc
Replace some more macros with constexpr variables
2020-10-21 16:39:21 -07:00
Jan Niklas Hasse
bd9d5d7bf0
Silence warning about unused return values
...
warning C4834: discarding return value of function with 'nodiscard'
attribute
2020-10-20 18:33:53 +02:00
Chris Robinson
a6aefeccd8
Use enum class for a couple enums
2020-09-01 05:46:19 -07:00
Chris Robinson
1f486f820e
Use a separate structure for buffer storage
2020-08-28 00:09:46 -07:00
Chris Robinson
b0b720c609
Avoid an unnecessary local variable
2020-06-16 14:01:39 -07:00
Chris Robinson
6db6d1510a
Remove the Lower channel labels and rename the Upper labels
2020-06-15 13:49:45 -07:00
Chris Robinson
401a9bacd1
Don't bother with otherwise unused Aux channels
2020-06-15 02:27:29 -07:00
Chris Robinson
540315b07c
Handle the front stablizer with the B-Format decoder
2020-06-15 02:13:14 -07:00
Chris Robinson
7ed37a8282
Use dual-band for the internal quad and 7.1 decoders
2020-05-07 03:15:46 -07:00
Chris Robinson
faec0c78eb
Allow declaring internal dual-band decoders
2020-05-07 02:13:11 -07:00
Chris Robinson
ca851298ad
Update the quad and 7.1 decoders
2020-05-06 22:36:29 -07:00
Chris Robinson
bef25361f1
Make the built-in decoders more flexible
2020-05-06 19:31:31 -07:00
Chris Robinson
8acf16fc82
Make BuildBFormatHrtf a member of DirectHrtfState
2020-05-01 10:28:16 -07:00
Chris Robinson
2deb5e47d1
Avoid an unnecessary out parameter
2020-04-21 23:58:53 -07:00
Chris Robinson
d67cba99bd
Clean up some more unnecessary uses of AL types
2020-04-08 10:15:43 -07:00
Chris Robinson
55539787fb
Avoid ALfloat in some places
2020-04-08 06:17:04 -07:00
Chris Robinson
f1f9a14172
Avoid AL[C]boolean for internal use
2020-03-28 18:15:05 -07:00
Chris Robinson
9ce182228d
Avoid some pre-C++14 workarounds
2020-03-22 08:51:06 -07:00
Chris Robinson
3e1a2c0f77
Use an intrusive_ptr for the device's HrtfStore
2020-03-01 17:16:09 -08:00
Chris Robinson
43780913cd
Fix the output channel count for the B-Format decoder
2020-01-19 13:40:39 -08:00
Chris Robinson
32c9dbd7ff
Avoid an extraneous index map
2020-01-15 10:45:08 -08:00
Chris Robinson
6a8c6eae6f
Make a couple helper methods to create BFormatDec
2020-01-15 10:33:56 -08:00
Chris Robinson
fcfcb88b28
Repack B-Format decoder fields
...
This should better provide sequential access.
2020-01-15 10:09:41 -08:00
Chris Robinson
7551242143
Use a span for a fixed-size array reference
2020-01-13 08:55:10 -08:00
Chris Robinson
0d0ea586b6
Use temporaries for repeated values
2020-01-05 03:38:19 -08:00
Chris Robinson
cc9fa266e7
Avoid more duplicate arrays
2020-01-04 16:50:35 -08:00
Chris Robinson
cdd24c7d01
Combine identical arrays
2020-01-04 00:59:49 -08:00
Chris Robinson
462bcd4ab7
Use a span instead of an array+size
2020-01-04 00:37:59 -08:00
Chris Robinson
a42a586f0f
Avoid a duplicate array
2020-01-04 00:04:55 -08:00
Chris Robinson
3f559e7e60
Rename a couple structs for clarity
2019-12-06 23:11:26 -08:00
Chris Robinson
1a51e3a9d1
Add an index map for 2D FuMa channels
2019-12-01 17:52:36 -08:00
Chris Robinson
9559f7bfc2
Update the second-order decoder for HRTF
...
This uses fewer virtual speakers to help with clarity. The fewer speakers used
for the response, the less destructive phase interference there should be.
2019-11-30 18:42:04 -08:00
Chris Robinson
846a997956
Add an option to limit the HRTF's IR size
2019-11-28 14:51:45 -08:00
Chris Robinson
f6105cbff0
Resample HRIRs when loading
2019-11-28 12:33:26 -08:00
Chris Robinson
925e6e979c
Rework HRTF enuemration so the loaded HRTFs are separate
2019-11-28 08:24:29 -08:00
Chris Robinson
1e93fba6d0
Rename HrtfEntry to HrtfStore
2019-11-28 06:10:36 -08:00
Chris Robinson
6159b837cf
Add a first-order ambisonic decoder for HRTF
2019-11-18 00:32:01 -08:00
Chris Robinson
c86a28af5c
Simplify some pi statements
2019-11-16 14:33:09 -08:00
Chris Robinson
6ad252efda
Use wrappers to distinguish elevation and azimuth values
2019-11-16 14:07:31 -08:00
Chris Robinson
d120e1464f
Improve precision of the HRTF ambisonic decoder matrix
2019-11-13 08:39:27 -08:00
Chris Robinson
74cbba511d
Limit HRTF ambisonic decoding to second-order
...
The generated third-order matrix has incorrect first-order coefficients,
indicating a wonky decoder. The generated second-order matrix looks more
stable.
2019-11-09 13:04:44 -08:00