Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Meters per unit can't be 0 | Chris Robinson | 2017-08-21 | 1 | -2/+2 |
| | |||||
* | Properly clear the extra ChannelsPerOrder entries | Chris Robinson | 2017-08-19 | 1 | -1/+1 |
| | |||||
* | Pass the filter entry to apply to resample_fir4 | Chris Robinson | 2017-08-18 | 1 | -3/+2 |
| | |||||
* | Store the sinc4 table in the filter state | Chris Robinson | 2017-08-16 | 1 | -3/+11 |
| | | | | Also rename the resampler functions to remove the unnecessary '32' token. | ||||
* | Simplify bsinc filter storage in the filter state | Chris Robinson | 2017-08-16 | 1 | -12/+3 |
| | | | | | | | Rather than storing individual pointers to filter, scale delta, phase delta, and scale phase delta entries, per phase index, the new table layout makes it trivial to access the per-phase filter and delta entries given the base offset and coefficient count. | ||||
* | Make the bsinc table layout more efficient | Chris Robinson | 2017-08-16 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | The old layout separated filters, scale deltas, phase deltas, and scale phase deltas into separate segments that each contained a numbers of scale and phase entries, Since processing a sample needed a filter and one of each delta entry relating to a particular scale and phase, the memory needed would be spread across the whole table. And since subsequent samples would use a different phase, it would jump around the table a whole lot as well. The new layout packs the data in a way more consistent with its use. The filters, scale deltas, phase deltas, and scale phase deltas are interleaved, such that for a particular scale and phase, the filter and delta entries used are contiguous. And the phase entries for a particular scale are kept together, so the ~500 to ~1000 samples processed per source update stay within the same 3KB to 6KB area of the 70+KB table, which is much more cache friendly. | ||||
* | Keep bsinc info together in a struct | Chris Robinson | 2017-08-15 | 1 | -22/+9 |
| | |||||
* | Avoid re-selecting the direct HRTF mix function | Chris Robinson | 2017-08-07 | 1 | -15/+22 |
| | |||||
* | Add a front-stablizer config option for surround sound modes | Chris Robinson | 2017-07-31 | 1 | -0/+59 |
| | | | | | | | | | | | | This improves a stereo (front-left + front-right) sound "image" by generating a front-center channel signal. Done correctly, it helps reduce the comb effects and phase errors associated with using only two speakers to simulate center sounds. Note that it shouldn't be used if the front-center channel is already included in the positional audio mix (the dialog effect is okay). In general, it may actually be better to exclude the front-center channel from the positional audio mix and use this to generate front-center output. | ||||
* | Cleanup output write functions | Chris Robinson | 2017-07-27 | 1 | -32/+26 |
| | |||||
* | Apply the output buffer offset before writing to it | Chris Robinson | 2017-07-15 | 1 | -24/+24 |
| | |||||
* | Add the default auxiliary slot to the active slot array | Chris Robinson | 2017-07-13 | 1 | -16/+0 |
| | |||||
* | Use macros to set and restore the mixer FPU mode | Chris Robinson | 2017-07-13 | 1 | -5/+2 |
| | |||||
* | Store the default effect slot in the context | Chris Robinson | 2017-07-13 | 1 | -18/+18 |
| | |||||
* | Remove the fastf2u conversion function | Chris Robinson | 2017-06-27 | 1 | -2/+2 |
| | |||||
* | Clean up some loop variables | Chris Robinson | 2017-06-25 | 1 | -29/+23 |
| | |||||
* | Use the bsinc resampler for the converter | Chris Robinson | 2017-06-25 | 1 | -1/+1 |
| | |||||
* | Remove an unnecessary variable | Chris Robinson | 2017-06-21 | 1 | -3/+2 |
| | |||||
* | Make the dithering depth configurable | Chris Robinson | 2017-06-17 | 1 | -14/+4 |
| | |||||
* | Apply dither separately from output | Chris Robinson | 2017-06-17 | 1 | -98/+68 |
| | |||||
* | Restrict ClampedDist to RefDistance for invalid distance attenuation | Chris Robinson | 2017-05-30 | 1 | -4/+10 |
| | |||||
* | Fix source sends' initial HF absorption and decay calculation | Chris Robinson | 2017-05-27 | 1 | -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 sends | Chris Robinson | 2017-05-27 | 1 | -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/limiter | Chris Robinson | 2017-05-27 | 1 | -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 separately | Chris Robinson | 2017-05-25 | 1 | -43/+66 |
| | |||||
* | Add an option to dither 8- and 16-bit output | Chris Robinson | 2017-05-23 | 1 | -45/+138 |
| | |||||
* | Reduce the amount of variables that hold the same value | Chris Robinson | 2017-05-21 | 1 | -8/+6 |
| | |||||
* | Avoid calculating the filter coefficients multiple times | Chris Robinson | 2017-05-21 | 1 | -24/+36 |
| | |||||
* | Use a macro to specify the decay target gain | Chris Robinson | 2017-05-21 | 1 | -5/+5 |
| | |||||
* | Use more correct doppler shift calculations | Chris Robinson | 2017-05-20 | 1 | -11/+24 |
| | |||||
* | Restore spec-defined cone behavior for auxiliary sends | Chris Robinson | 2017-05-20 | 1 | -26/+23 |
| | |||||
* | Apply more proper air absorption to the wet path | Chris Robinson | 2017-05-19 | 1 | -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 temporaries | Chris Robinson | 2017-05-17 | 1 | -39/+34 |
| | |||||
* | Limit the dry and wet path filter gains to -60dB | Chris Robinson | 2017-05-15 | 1 | -4/+4 |
| | |||||
* | Improve distance-related absorption and decay attenuation | Chris Robinson | 2017-05-15 | 1 | -15/+14 |
| | |||||
* | Reduce LIMITER_VALUE_MAX | Chris Robinson | 2017-05-09 | 1 | -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 integers | Chris Robinson | 2017-05-08 | 1 | -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 panning | Chris Robinson | 2017-05-07 | 1 | -10/+26 |
| | |||||
* | Calculate the output limiter gain using the RMS | Chris Robinson | 2017-05-05 | 1 | -23/+59 |
| | |||||
* | Rename RollOff to Rolloff | Chris Robinson | 2017-05-05 | 1 | -4/+4 |
| | |||||
* | Add a property to force source spatialization on or off | Chris Robinson | 2017-05-04 | 1 | -3/+5 |
| | |||||
* | Handle attenuated sources in CalcPanningAndFilters | Chris Robinson | 2017-05-04 | 1 | -377/+442 |
| | |||||
* | Calculate the multi-channel panning in a separate function | Chris Robinson | 2017-05-04 | 1 | -249/+249 |
| | |||||
* | Rename VOICE_IS_HRTF to VOICE_HAS_HRTF | Chris Robinson | 2017-05-02 | 1 | -4/+4 |
| | |||||
* | Implement a limiter on the device output | Chris Robinson | 2017-04-26 | 1 | -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 happy | Chris Robinson | 2017-04-21 | 1 | -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 source | Chris Robinson | 2017-04-21 | 1 | -0/+2 |
| | |||||
* | Make the buffer list next pointer atomic | Chris Robinson | 2017-04-19 | 1 | -1/+1 |
| | |||||
* | Use a different way to get the size of structs with flexible array members | Chris Robinson | 2017-04-18 | 1 | -1/+1 |
| | |||||
* | Store the source prop updates with the mixer voice | Chris Robinson | 2017-04-17 | 1 | -9/+34 |
| | | | | Also move its declaration and rename it for consistency. |