aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_defs.h
Commit message (Collapse)AuthorAgeFilesLines
* Handle the source offset fraction as an ALsizeiChris Robinson2017-04-081-14/+14
|
* Rework HRTF coefficient fadingChris Robinson2017-03-111-9/+9
| | | | | | | | | | | | | | | This improves fading between HRIRs as sources pan around. In particular, it improves the issue with individual coefficients having various rounding errors in the stepping values, as well as issues with interpolating delay values. It does this by doing two mixing passes for each source. First using the last coefficients that fade to silence, and then again using the new coefficients that fade from silence. When added together, it creates a linear fade from one to the other. Additionally, the gain is applied separately so the individual coefficients don't step with rounding errors. Although this does increase CPU cost since it's doing two mixes per source, each mix is a bit cheaper now since the stepping is simplified to a single gain value, and the overall quality is improved.
* Remove the sinc8 resampler optionChris Robinson2017-02-191-11/+0
| | | | | Perf shows less than 1 percent CPU difference from the higher quality bsinc resampler, but uses almost twice as much memory (a 128KB lookup table).
* Put BsincState in a generic unionChris Robinson2017-02-131-17/+17
|
* Add NEON-enhanced resamplersChris Robinson2017-02-121-4/+18
|
* Pass the left and right buffers to the hrtf mixers directlyChris Robinson2017-01-171-6/+6
|
* Use ALsizei and ALint for sizes and offsets with resamplers and filtersChris Robinson2017-01-161-23/+24
|
* Use ALsizei for sizes and offsets with the mixerChris Robinson2017-01-161-36/+36
| | | | | | Unsigned 32-bit offsets actually have some potential overhead on 64-bit targets for pointer/array accesses due to rules on integer wrapping. No idea how much impact it has in practice, but it's nice to be correct about it.
* Add some more 'restrict' keywordsChris Robinson2016-10-061-20/+26
|
* Pass current and target gains directly for mixingChris Robinson2016-10-051-3/+6
|
* Make some pointer-to-array parameters constChris Robinson2016-10-041-6/+9
|
* Rename MatrixMixerFunc to RowMixerFuncChris Robinson2016-09-021-3/+3
|
* Use a more specialized mixer function for B-Format to HRTFChris Robinson2016-08-121-0/+12
|
* Implement a Neon-enhanced MixRowChris Robinson2016-06-011-0/+2
|
* Use SSE for applying the HQ B-Format decoder matricesChris Robinson2016-05-311-0/+4
|
* Use the real output's left and right channels with HRTFChris Robinson2016-03-111-12/+12
|
* Calculate HRTF stepping params right before mixingChris Robinson2016-02-141-4/+4
| | | | | This means we track the current params and the target params, rather than the target params and the stepping. This closer matches the non-HRTF mixers.
* Implement a band-limited sinc resamplerChris Robinson2015-11-051-11/+15
| | | | | | | | This is essentially a 12-point sinc resampler, unless it's resampling to a rate higher than the output, at which point it will vary between 12 and 24 points and do anti-aliasing to avoid/reduce frequencies going over nyquist. Code provided by Christopher Fitzgerald.
* Reorganize the HRTF group boxChris Robinson2015-10-121-1/+1
| | | | | The three radio buttons are moved to a combo box, which gives a bit more width for the file list contents.
* Replace the sinc6 resampler with sinc8, and make SSE versionsChris Robinson2015-10-111-1/+6
|
* Move the FIR4 from SSE2 to SSE3Chris Robinson2015-10-111-1/+1
| | | | | SSE3 can avoid the slow _MM_TRANSPOSE_PS4 call thanks to the inclusion of horizontal adds.
* Implement a 6-point sinc-lanczos filterChris Robinson2015-09-291-0/+1
|
* Replace the cubic resampler with a 4-point sinc/lanczos filterChris Robinson2015-09-271-3/+3
|
* Add SSE2 and SSE4.1 cubic resamplersChris Robinson2014-12-151-0/+5
|
* Partially revert "Use a different method for HRTF mixing"Chris Robinson2014-11-231-6/+9
| | | | | | | | | | | | The sound localization with virtual channel mixing was just too poor, so while it's more costly to do per-source HRTF mixing, it's unavoidable if you want good localization. This is only partially reverted because having the virtual channel is still beneficial, particularly with B-Format rendering and effect mixing which otherwise skip HRTF processing. As before, the number of virtual channels can potentially be customized, specifying more or less channels depending on the system's needs.
* Use a different method for HRTF mixingChris Robinson2014-11-221-9/+6
| | | | | | | | | | | | | | | | | | | | | | | This new method mixes sources normally into a 14-channel buffer with the channels placed all around the listener. HRTF is then applied to the channels given their positions and written to a 2-channel buffer, which gets written out to the device. This method has the benefit that HRTF processing becomes more scalable. The costly HRTF filters are applied to the 14-channel buffer after the mix is done, turning it into a post-process with a fixed overhead. Mixing sources is done with normal non-HRTF methods, so increasing the number of playing sources only incurs normal mixing costs. Another benefit is that it improves B-Format playback since the soundfield gets mixed into speakers covering all three dimensions, which then get filtered based on their locations. The main downside to this is that the spatial resolution of the HRTF dataset does not play a big role anymore. However, the hope is that with ambisonics- based panning, the perceptual position of panned sounds will still be good. It is also an option to increase the number of virtual channels for systems that can handle it, or maybe even decrease it for weaker systems.
* Combine the direct and send mixersChris Robinson2014-06-131-27/+15
|
* Combine some dry and wet path typesChris Robinson2014-06-131-4/+3
|
* Move InitiatePositionArrays to mixer_defs.hChris Robinson2014-06-061-0/+15
|
* Add SSE2 and SSE4.1 linear resamplersTimothy Arceri2014-06-061-0/+6
| | | | | Currently the only way SSE 4.1 is detected is by using __get_cpuid, i.e. with GCC. Windows' IsProcessorFeaturePresent does not report SSE4.1 capabilities.
* Return a sample pointer from resamplersChris Robinson2014-05-191-4/+4
| | | | Both resampling and filtering now avoid copying samples when they no-op.
* Move an HRTF mixer parameter and shorten a couple variable namesChris Robinson2014-05-181-6/+6
|
* Don't pass the SendParams to the wet-path mixerChris Robinson2014-05-181-5/+10
|
* Don't pass the DirectParams to the dry-path mixerChris Robinson2014-05-181-10/+11
|
* Use different parameters for HRTF mixersChris Robinson2014-05-181-9/+15
|
* Pass some DirectParams as function parametersChris Robinson2014-05-181-6/+18
|
* Remove the click removal buffers for auxiliary effect slotsChris Robinson2014-03-231-3/+3
|
* Remove the now-unneeded click removal buffers for the deviceChris Robinson2014-03-231-6/+6
| | | | | | They are still there for auxiliary sends. However, they should go away soon enough too, and then we won't have to mess around with calculating extra "predictive" samples in the mixer.
* Store the HrtfState directly in the DirectParamsChris Robinson2014-03-231-9/+9
|
* Implement dry and wet mixers for NeonChris Robinson2014-01-261-0/+2
| | | | Code provided by Philippe Simons <[email protected]>.
* Use restrict instead of RESTRICTChris Robinson2013-05-221-11/+11
|
* Constify the direct and send parameters given to the mixerChris Robinson2012-10-151-7/+7
|
* Remove the unused Device parameterChris Robinson2012-10-141-5/+5
|
* Remove the now-unused Source parameter from the DryMix methodsChris Robinson2012-10-141-6/+5
|
* Add a special resampler for matching sample ratesChris Robinson2012-10-051-0/+1
|
* Remove an unneeded parameter from the resamplerChris Robinson2012-09-271-3/+3
|
* Remove an unnecessary includeChris Robinson2012-09-241-1/+0
|
* Remove SSE resamplers. They aren't gaining us much this way.Chris Robinson2012-09-241-4/+0
|
* Avoid building redundant mixersChris Robinson2012-09-161-2/+0
|
* Implement an SSE cubic resamplerChris Robinson2012-09-141-0/+1
|