7996 Commits

Author SHA1 Message Date
Chris Robinson
707f4cca27 Limit the super stereo width factor to 0.7 2022-04-04 23:20:59 -07:00
Chris Robinson
8188bb9f01 Update a comment for abandoned extension functions 2022-04-03 20:52:54 -07:00
Chris Robinson
f2f83aaabb Finalize AL_SOFT_callback_buffer 2022-04-01 19:31:22 -07:00
Chris Robinson
33109e86c9 Fix ALC_SOFT_reopen_device for the null device extension list 2022-04-01 19:26:41 -07:00
Chris Robinson
a731e042cc Remove the unused flags parameter from alBufferCallbackSOFT 2022-04-01 19:15:16 -07:00
Chris Robinson
872c206deb Finalize ALC_SOFT_reopen_device 2022-04-01 16:37:26 -07:00
Chris Robinson
1e8e63067c Remove an unnecessary subtraction 2022-04-01 09:47:32 -07:00
Chris Robinson
6f9311b1ba Don't manually reverse samples 2022-03-31 13:07:58 -07:00
Chris Robinson
7c60d0f163 Invert a check to put the first taken path first 2022-03-31 08:36:34 -07:00
Chris Robinson
9d240becad Make and use a processHfScale function with a separate output 2022-03-31 06:11:47 -07:00
Chris Robinson
d91b68ef8e Avoid some explicit extern "C"s on function definitions 2022-03-31 05:20:16 -07:00
Chris Robinson
abfb584f14 Simplify al::byte
It's just an alias for unsigned char now, and no longer strongly-typed like
std::byte.
2022-03-30 15:52:15 -07:00
Chris Robinson
4999b5716c Remove a dead store 2022-03-30 05:01:42 -07:00
Chris Robinson
6718a49486 Replace a few asserts with actual checks or ASSUME() 2022-03-30 05:01:06 -07:00
Chris Robinson
9537c77105 Avoid some redundant variable assignments 2022-03-30 04:32:40 -07:00
Chris Robinson
f15106e77f Remove the reversed all-pass trick in MixDirectHrtfBase
Given the minimum phase HRTF, it's not going to stay linear phase anyway.
2022-03-30 04:06:00 -07:00
Chris Robinson
a033f8c274 Add missing include 2022-03-30 01:44:09 -07:00
Chris Robinson
51796ccbed Move assume_aligned to opthelpers.h and define force_inline 2022-03-30 01:33:32 -07:00
Chris Robinson
325c992bea Avoid a shadow declaration warning 2022-03-30 01:25:36 -07:00
Chris Robinson
1410a8e03a Slightly improve code flow for ASSUME 2022-03-29 22:13:34 -07:00
Chris Robinson
6bc1787a3b Make and use a Default enum for StereoEncoding 2022-03-29 11:48:57 -07:00
Chris Robinson
4ca8992fbd Rename ALC_STEREO_PLAIN_SOFT and don't duplicate ALC_HRTF_SOFT 2022-03-29 11:48:57 -07:00
Glyn Leine
a752d920d1
constexpr functions are not allowed to have static variables, and if they are constexpr anyways then them being static has no benifit (#677) 2022-03-29 08:46:49 -07:00
Chris Robinson
b9ff9fa6d9 Avoid a variable to subscript an array in offsetof 2022-03-26 17:25:57 -07:00
Chris Robinson
e53013a549 Inline a couple dispatch calls 2022-03-26 05:28:46 -07:00
Chris Robinson
6d0bd1a532 Simplify some move assignments 2022-03-25 16:36:46 -07:00
Chris Robinson
b80dc50495 Protect intrusive_ptr and ComPtr from moving to itself 2022-03-25 03:47:43 -07:00
Chris Robinson
1ee34556a6 Try to improve assume_aligned for other compilers 2022-03-25 00:13:06 -07:00
Chris Robinson
96c151b45b Don't expose EAX reverb preset duplicates
The presets are already in their respective arrays, which makes the individual
globals redundant.
2022-03-24 16:13:16 -07:00
Chris Robinson
88d5c47e37 Simplify a couple offsetof statements 2022-03-24 16:12:23 -07:00
Chris Robinson
b168482ea3 Revert "Set the proper reverb effect defaults for EAX"
This reverts commit 964a11ef629fa3a89e827516a47949c858ce864c.
2022-03-24 00:51:02 -07:00
Chris Robinson
bdf18d60db Be more careful about checking compiler flags
Certain combinations of MSVC and CMake seem to allow all compiler flag checks
to pass, which was causing certain GCC attributes to be used on MSVC.
2022-03-23 23:40:54 -07:00
Chris Robinson
3b09b7761f Handle more modes with the ALC_OUTPUT_MODE_SOFT attribute 2022-03-23 19:13:21 -07:00
Chris Robinson
964a11ef62 Set the proper reverb effect defaults for EAX 2022-03-23 17:38:45 -07:00
Chris Robinson
8239e4c845 Better ensure attributes are properly traced 2022-03-17 13:26:49 -07:00
Chris Robinson
3d0500f823 Fix tracing the ALC_OUTPUT_MODE_SOFT attribute 2022-03-17 12:21:31 -07:00
Chris Robinson
8ca3186bac Ensure the EAX functions are suitably aligned on 32-bit 2022-03-16 20:32:09 -07:00
Chris Robinson
f903c1ea11 Make sure FX slots that aren't made active are disabled 2022-03-13 10:38:36 -07:00
Chris Robinson
e28937d1f6 Add options to reverse local X and Y coordinates
To go along with reverse-z on the other axii. This is only for games that have
position/orientation errors causing top-bottom (or left-right) inversion.
2022-03-10 22:37:02 -08:00
Chris Robinson
a2d34e4c2a Update comments about where to put config files 2022-03-10 20:53:16 -08:00
Chris Robinson
8e0164df96 Fix for some missing macros 2022-03-10 18:05:07 -08:00
Chris Robinson
609ee74211 Add a config option for reverse-z
The same as the __ALSOFT_REVERSE_Z env var, but in the config file. Should only
be used for per-game config files (either along side the executable, or setting
the ALSOFT_CONF env var when launching the app).
2022-03-10 17:47:42 -08:00
Chris Robinson
cfae2cc254 Use proper macros instead of magic numbers 2022-03-09 16:11:47 -08:00
Chris Robinson
90db129d60 Avoid a divide-by-zero in UhjDecoder::decodeStereo 2022-03-07 17:32:13 -08:00
Chris Robinson
1369a081a0 Fix X-RAM tracking 2022-03-06 01:19:41 -08:00
Chris Robinson
be3b37b7c9 Avoid a stateful unique_ptr deleter 2022-03-05 18:49:46 -08:00
Chris Robinson
776d62c1d1 Fix EAXSOURCE_ROLLOFFFACTOR
It should be added to AL_ROLLOFF_FACTOR.
2022-03-05 17:39:18 -08:00
Chris Robinson
cc3cae87b2 Set the MacroFXFactor default 2022-03-05 01:32:20 -08:00
Chris Robinson
2dc9cf170c Simplify committing EAX properties
Based on DirectSound's EAX behavior, committing any EAX property commits *all*
deferred property changes, not just the object being changed. So applying EAX
changes can be handled in one place.
2022-03-05 01:14:26 -08:00
Chris Robinson
7bec22abb6 Handle deferring for EAX 1 reverb
I don't know if EAX 1 actually handles deferring updates, but it will simplify
future changes.
2022-03-04 18:24:29 -08:00