aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup output write functionsChris Robinson2017-07-271-32/+26
|
* Apply the output buffer offset before writing to itChris Robinson2017-07-151-24/+24
|
* Add the default auxiliary slot to the active slot arrayChris Robinson2017-07-131-16/+0
|
* Use macros to set and restore the mixer FPU modeChris Robinson2017-07-131-5/+2
|
* Store the default effect slot in the contextChris Robinson2017-07-131-18/+18
|
* Remove the fastf2u conversion functionChris Robinson2017-06-271-2/+2
|
* Clean up some loop variablesChris Robinson2017-06-251-29/+23
|
* Use the bsinc resampler for the converterChris Robinson2017-06-251-1/+1
|
* Remove an unnecessary variableChris Robinson2017-06-211-3/+2
|
* Make the dithering depth configurableChris Robinson2017-06-171-14/+4
|
* Apply dither separately from outputChris Robinson2017-06-171-98/+68
|
* Restrict ClampedDist to RefDistance for invalid distance attenuationChris Robinson2017-05-301-4/+10
|
* Fix source sends' initial HF absorption and decay calculationChris Robinson2017-05-271-21/+15
| | | | | | | | The HF absorption is applied given the source distance, as relative to the source's immediate environment, with additional absorption being applied given the room/reverb environment. This does double up the amount of absorption compared to the dry path, but it can be assumed the initial reflections travel a longer distance.
* Use normal air absorption for the sendsChris Robinson2017-05-271-1/+1
| | | | | Applies just for the normal air absorption which uses the air absorption factor, not the automated decay applied when WetGainAuto is enabled.
* Add a new compressor/limiterChris Robinson2017-05-271-93/+2
| | | | | | This is just for the output limiter right now, but in the future can be used for the compressor EFX effect. The parameters are also hardcoded, but can be made configurable after 1.18.
* Apply distance compensation separatelyChris Robinson2017-05-251-43/+66
|
* Add an option to dither 8- and 16-bit outputChris Robinson2017-05-231-45/+138
|
* Reduce the amount of variables that hold the same valueChris Robinson2017-05-211-8/+6
|
* Avoid calculating the filter coefficients multiple timesChris Robinson2017-05-211-24/+36
|
* Use a macro to specify the decay target gainChris Robinson2017-05-211-5/+5
|
* Use more correct doppler shift calculationsChris Robinson2017-05-201-11/+24
|
* Restore spec-defined cone behavior for auxiliary sendsChris Robinson2017-05-201-26/+23
|
* Apply more proper air absorption to the wet pathChris Robinson2017-05-191-21/+53
| | | | | | | | This properly accounts for the room rolloff factor for normal air absorption (which makes it none by default, like distance attenuation), and uses the reverb's decay time, decay hf ratio, decay hf limit, and room air absorption properties to calculate an initial hf decay with the WetGainAuto flag. This mirrors the behavior of the initial distance decay.
* Reorganize some code to have fewer temporariesChris Robinson2017-05-171-39/+34
|
* Limit the dry and wet path filter gains to -60dBChris Robinson2017-05-151-4/+4
|
* Improve distance-related absorption and decay attenuationChris Robinson2017-05-151-15/+14
|
* Reduce LIMITER_VALUE_MAXChris Robinson2017-05-091-6/+12
| | | | | | The previous value couldn't actually be expressed as a float and got rounded up to the next whole number value, leaving the potential for an overrun in the squared sum.
* Store the output limiter values as fixed-point integersChris Robinson2017-05-081-11/+6
| | | | | This helps keep the squared sum stable over larger updates, also avoiding the need to keep recalculating it.
* Apply attenuation when downmixing multi-channel sounds for panningChris Robinson2017-05-071-10/+26
|
* Calculate the output limiter gain using the RMSChris Robinson2017-05-051-23/+59
|
* Rename RollOff to RolloffChris Robinson2017-05-051-4/+4
|
* Add a property to force source spatialization on or offChris Robinson2017-05-041-3/+5
|
* Handle attenuated sources in CalcPanningAndFiltersChris Robinson2017-05-041-377/+442
|
* Calculate the multi-channel panning in a separate functionChris Robinson2017-05-041-249/+249
|
* Rename VOICE_IS_HRTF to VOICE_HAS_HRTFChris Robinson2017-05-021-4/+4
|
* Implement a limiter on the device outputChris Robinson2017-04-261-1/+59
| | | | | | This reduces the output volume when the mixed samples extend outside of -1,+1, to prevent excessive clipping. It can reduce the volume by -80dB in 50ms, and increase it by +80dB in 1s (it will not go below -80dB or above 0dB).
* Remove const from _Atomic vars to make Clang happyChris Robinson2017-04-211-1/+1
| | | | | | | | Clang does not allow using C11's atomic_load on const _Atomic variables. Previously it just disabled use of C11 atomics if atomic_load didn't work on a const _Atomic variable, but I think I'd prefer to have Clang use C11 atomics for the added features (more explicit memory ordering) even if it means a few instances of breaking const.
* Store the resampler as part of the sourceChris Robinson2017-04-211-0/+2
|
* Make the buffer list next pointer atomicChris Robinson2017-04-191-1/+1
|
* Use a different way to get the size of structs with flexible array membersChris Robinson2017-04-181-1/+1
|
* Store the source prop updates with the mixer voiceChris Robinson2017-04-171-9/+34
| | | | Also move its declaration and rename it for consistency.
* Use separate atomic macros for pointersChris Robinson2017-04-141-6/+6
|
* Use ALsizei for the fir4 resampler fractionChris Robinson2017-04-121-1/+1
|
* Select NEON when available before SSEChris Robinson2017-04-121-4/+4
|
* Constify a variableChris Robinson2017-04-011-3/+3
|
* Make a pointer restrict and assume alignedChris Robinson2017-04-011-1/+1
|
* Convert float samples to integer using a power-of-2 multipleChris Robinson2017-03-311-13/+9
|
* Use an array of pointers for effects instead of a linked listChris Robinson2017-03-271-19/+15
|
* Increase the filter slope to -12dB/octaveChris Robinson2017-03-161-8/+8
|
* Store the HRIR coeff pointer and delays directly in MixHrtfParamsChris Robinson2017-03-121-1/+0
|