Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't expose EAX reverb preset duplicates | Chris Robinson | 2022-03-24 | 2 | -113/+62 |
| | | | | | The presets are already in their respective arrays, which makes the individual globals redundant. | ||||
* | Simplify a couple offsetof statements | Chris Robinson | 2022-03-24 | 1 | -10/+4 |
| | |||||
* | Revert "Set the proper reverb effect defaults for EAX" | Chris Robinson | 2022-03-24 | 1 | -25/+0 |
| | | | | This reverts commit 964a11ef629fa3a89e827516a47949c858ce864c. | ||||
* | Be more careful about checking compiler flags | Chris Robinson | 2022-03-23 | 1 | -15/+15 |
| | | | | | 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. | ||||
* | Handle more modes with the ALC_OUTPUT_MODE_SOFT attribute | Chris Robinson | 2022-03-23 | 4 | -184/+254 |
| | |||||
* | Set the proper reverb effect defaults for EAX | Chris Robinson | 2022-03-23 | 1 | -0/+25 |
| | |||||
* | Better ensure attributes are properly traced | Chris Robinson | 2022-03-17 | 1 | -28/+15 |
| | |||||
* | Fix tracing the ALC_OUTPUT_MODE_SOFT attribute | Chris Robinson | 2022-03-17 | 1 | -1/+1 |
| | |||||
* | Ensure the EAX functions are suitably aligned on 32-bit | Chris Robinson | 2022-03-16 | 2 | -4/+4 |
| | |||||
* | Make sure FX slots that aren't made active are disabled | Chris Robinson | 2022-03-13 | 1 | -9/+6 |
| | |||||
* | Add options to reverse local X and Y coordinates | Chris Robinson | 2022-03-10 | 5 | -11/+36 |
| | | | | | 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. | ||||
* | Update comments about where to put config files | Chris Robinson | 2022-03-10 | 1 | -6/+10 |
| | |||||
* | Fix for some missing macros | Chris Robinson | 2022-03-10 | 1 | -0/+5 |
| | |||||
* | Add a config option for reverse-z | Chris Robinson | 2022-03-10 | 4 | -25/+41 |
| | | | | | | 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). | ||||
* | Use proper macros instead of magic numbers | Chris Robinson | 2022-03-09 | 1 | -3/+3 |
| | |||||
* | Avoid a divide-by-zero in UhjDecoder::decodeStereo | Chris Robinson | 2022-03-07 | 1 | -4/+4 |
| | |||||
* | Fix X-RAM tracking | Chris Robinson | 2022-03-06 | 4 | -185/+117 |
| | |||||
* | Avoid a stateful unique_ptr deleter | Chris Robinson | 2022-03-05 | 2 | -28/+10 |
| | |||||
* | Fix EAXSOURCE_ROLLOFFFACTOR | Chris Robinson | 2022-03-05 | 2 | -2/+11 |
| | | | | It should be added to AL_ROLLOFF_FACTOR. | ||||
* | Set the MacroFXFactor default | Chris Robinson | 2022-03-05 | 1 | -0/+1 |
| | |||||
* | Simplify committing EAX properties | Chris Robinson | 2022-03-05 | 18 | -1072/+328 |
| | | | | | | 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. | ||||
* | Handle deferring for EAX 1 reverb | Chris Robinson | 2022-03-04 | 1 | -351/+212 |
| | | | | | I don't know if EAX 1 actually handles deferring updates, but it will simplify future changes. | ||||
* | Ensure deferred EAX effect properties are committed | Chris Robinson | 2022-03-04 | 17 | -57/+86 |
| | |||||
* | Fix the UHJ decoder parameters in uhjdecoder | Chris Robinson | 2022-03-02 | 1 | -5/+5 |
| | |||||
* | Fix applying the EAX context AirAbsorptionHF property | Chris Robinson | 2022-03-02 | 1 | -1/+1 |
| | |||||
* | Fix applying air absorption | Chris Robinson | 2022-03-02 | 1 | -20/+20 |
| | |||||
* | Move some temp variables closer to where they're used | Chris Robinson | 2022-03-02 | 1 | -69/+67 |
| | |||||
* | Rework source send distance attenuation handling | Chris Robinson | 2022-03-02 | 1 | -61/+77 |
| | | | | | | | | Specifically, AL_[EAX]REVERB_ROOM_ROLLOFF_FACTOR always applies to an inverse distance rolloff model, where the source's AL_ROOM_ROLLOFF_FACTOR applies to the selected distance model. Consequently, the normal distance and cone attenuation only needs to be calculated once for all sends, with the effect's room rolloff calculated and applied separately. | ||||
* | Rework the initial reverb decay | Chris Robinson | 2022-03-01 | 1 | -41/+32 |
| | | | | | | | | | | | | | | | | | | The idea here is that the initial reverb decay can't become less than the dry path distance attenuation, as the dry attenuation represents the audio that has not yet had a chance to start reflecting in the environment. As well, the reference distance indicates where there is no distance attenuation, with any initial attenuation set by the environment itself. So what we do is use the dry path attenuation as the baseline for what's mixed to the reverb, with the decay rate indicating how much of the remaining room (non-direct) energy attenuates with distance. This may be over-complicating it. Other sources hint at a more typical XdB per doubling of distance, with X varying depending on environment properties (room size, absorbancy, etc). This could be handled by applying a normal inverse distance attenuation model, with a rolloff factor generated from the reverb properties (density, decay rate, etc). Will need more testing and research. | ||||
* | Remove AL_SOFTX_filter_gain_ex | Chris Robinson | 2022-02-28 | 2 | -6/+3 |
| | | | | | | It was only added to try to help DSOAL, and it's not clear if it's even necessary. But with native EAX API support, it certainly isn't necessary anymore. | ||||
* | Forward the DriverIface constructor's name | Chris Robinson | 2022-02-26 | 1 | -4/+6 |
| | |||||
* | Don't handle EFX functions in the router | Chris Robinson | 2022-02-26 | 4 | -140/+3 |
| | | | | | | Creative's wrapper driver doesn't handle them through alcGetProcAddress, at least with a null device. For this to work properly, they'd have to be loaded per-context instead of per-driver. | ||||
* | Use a more C99-compliant function cast | Chris Robinson | 2022-02-26 | 4 | -4/+48 |
| | |||||
* | Use a more compatible method to check for EFX effects | Chris Robinson | 2022-02-26 | 1 | -41/+68 |
| | | | | | | Creative's wrapper driver doesn't seem to handle EFX enums for alGetEnumValue, let alone return values only for what's supported. The only way to check which filter and effect types it supports is try to set them and check for errors. | ||||
* | Forward the (un)likely expression being cast to bool | Chris Robinson | 2022-02-24 | 1 | -4/+7 |
| | |||||
* | Make some structs nested | Chris Robinson | 2022-02-23 | 2 | -13/+13 |
| | |||||
* | Remove unused atomic_invflag | Chris Robinson | 2022-02-23 | 1 | -19/+0 |
| | |||||
* | Use function overloading to handle pthread_setname_np differences | Chris Robinson | 2022-02-23 | 3 | -59/+26 |
| | |||||
* | Default initialize a union | Chris Robinson | 2022-02-23 | 1 | -2/+2 |
| | | | | To silence an errant GCC warning | ||||
* | Fix an unused parameter warning | Chris Robinson | 2022-02-23 | 1 | -1/+6 |
| | | | | ... when either pthread_setschedparam or RTKit aren't available. | ||||
* | Define the CoreAudio default name only when needed | Chris Robinson | 2022-02-23 | 1 | -2/+4 |
| | |||||
* | Make some local constexpr variables static | Chris Robinson | 2022-02-23 | 7 | -39/+33 |
| | |||||
* | Avoid an implicit char-to-bool conversion | Chris Robinson | 2022-02-23 | 1 | -5/+5 |
| | |||||
* | Explicitly define AmbDecConf's destructor | Chris Robinson | 2022-02-22 | 2 | -0/+5 |
| | | | | | | GCC complains it can't inline the destructor because it's "unlikely" to be called and would bloat code size, despite being implicitly defined. Technically accurate, but rather annoying since it's not explicitly called or defined. | ||||
* | Add a OpenAL::OpenAL cmake target alias | Chris Robinson | 2022-02-22 | 1 | -0/+3 |
| | | | | For when built as a sub-project, to clarify it's a target instead of a library. | ||||
* | Clean up some cmake output formatting | Chris Robinson | 2022-02-22 | 1 | -13/+13 |
| | |||||
* | Avoid using an if_constexpr macro | Chris Robinson | 2022-02-22 | 5 | -53/+54 |
| | | | | | It doesn't actually use if constexpr, and compilers are smart enough to optimize. Some functions can use templates instead. | ||||
* | Rename some variables to show the relevant bit pattern | Chris Robinson | 2022-02-22 | 1 | -9/+9 |
| | |||||
* | Revert "Use std::exchange instead of two swaps" | Chris Robinson | 2022-02-22 | 1 | -1/+2 |
| | | | | This reverts commit aa19223c65d8693dbaa8d8c9fa0c129d77eed4de. | ||||
* | Use a simpler loop to enumerate sources | Chris Robinson | 2022-02-21 | 2 | -222/+17 |
| |