aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_sse.c
Commit message (Collapse)AuthorAgeFilesLines
* Make sure all gain steps are applied with the SSE and Neon mixersChris Robinson2014-05-031-12/+13
|
* Use _mm_set_ps() to set an __m128 instead of {}Chris Robinson2014-04-261-2/+2
|
* Remove the click removal buffers for auxiliary effect slotsChris Robinson2014-03-231-1/+1
|
* Add gain stepping to the send mixersChris Robinson2014-03-231-23/+52
|
* Remove the now-unneeded click removal buffers for the deviceChris Robinson2014-03-231-1/+1
| | | | | | 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.
* Step mixing gains per-sample for non-HRTF mixingChris Robinson2014-03-231-15/+41
| | | | | | | | | | | | | | | | | | | | | | | | This fades the dry mixing gains using a logarithmic curve, which should produce a smoother transition than a linear one. It functions similarly to a linear fade except that step = (target - current) / numsteps; ... gain += step; becomes step = powf(target / current, 1.0f / numsteps); ... gain *= step; where 'target' and 'current' are clamped to a lower bound that is greater than 0 (which makes no sense on a logarithmic scale). Consequently, the non-HRTF direct mixers do not do not feed into the click removal and pending click buffers, as this per-sample fading would do an adequate job of stopping clicks and pops caused by extreme gain changes. These buffers should be removed shortly.
* Store the HrtfState directly in the DirectParamsChris Robinson2014-03-231-2/+2
|
* Use a union to combine HRTF and non-HRTF mixer paramsChris Robinson2014-03-191-1/+1
|
* Revert "Apply HRTF coefficient stepping separately"Chris Robinson2014-02-231-7/+53
| | | | | | | | | This reverts commit 25b9c3d0c15e959d544f5d0ac7ea507ea5f6d69f. Conflicts: Alc/mixer_neon.c Unfortunately this also undoes the Neon-enhanced ApplyCoeffsStep method.
* Apply HRTF coefficient stepping separatelyChris Robinson2013-11-101-53/+7
|
* Use a macro for the silence thresholdChris Robinson2013-10-061-2/+2
|
* Don't store the effect slot in SendParamsChris Robinson2013-10-061-16/+15
| | | | This makes it much more like DirectParams.
* Use a separate value for the maximum buffer channelsChris Robinson2013-07-231-2/+2
| | | | | | | Unlike the device, input buffers are accessed based on channel numbers instead of enums. This means the maximum number of channels they hold depends on the number of channels any one format can have, rather than the total number of recognized channels. Currently, this is 8 for 7.1.
* Work around some problems with KDevelop's parserChris Robinson2013-06-181-0/+7
|
* Use C99's inline instead of __inlineChris Robinson2013-05-281-9/+9
|
* Use restrict instead of RESTRICTChris Robinson2013-05-221-13/+13
|
* Avoid an underflow in the SSE mixers if BufferSize is less than 4Chris Robinson2012-12-241-2/+2
|
* Constify the direct and send parameters given to the mixerChris Robinson2012-10-151-3/+3
|
* Remove the unused Device parameterChris Robinson2012-10-141-3/+1
|
* Store the output buffers in the DirectParams structChris Robinson2012-10-141-3/+4
|
* Remove the now-unused Source parameter from the DryMix methodsChris Robinson2012-10-141-2/+1
|
* Combine multiple loops into oneChris Robinson2012-09-241-34/+19
|
* Avoid mixing silence to outputChris Robinson2012-09-241-1/+11
| | | | "Silence" being less than -100dB.
* Remove SSE resamplers. They aren't gaining us much this way.Chris Robinson2012-09-241-92/+0
|
* Fix matrix multiply used by the SSE cubic resamplerChris Robinson2012-09-181-63/+22
| | | | Also remove the 4-sample loop. It's not terribly effective.
* Explicitly give the wet buffer 1 channelChris Robinson2012-09-161-4/+4
|
* Check the proper value for setting WetPendingClicksChris Robinson2012-09-161-1/+1
|
* Avoid building redundant mixersChris Robinson2012-09-161-7/+5
|
* Implement an SSE MixSend methodChris Robinson2012-09-161-0/+29
|
* Implement an SSE cubic resamplerChris Robinson2012-09-141-0/+86
|
* Implement an SSE linear resamplerChris Robinson2012-09-141-0/+47
|
* Minor cleanups for variable declarationsChris Robinson2012-09-111-6/+3
|
* Use a non-interleaved DryBufferChris Robinson2012-09-111-26/+15
|
* Do the filtering separately from the mixingChris Robinson2012-09-111-17/+5
|
* Update HRTF codeChris Robinson2012-09-111-23/+86
| | | | | | | | | | | This update allows for much more flexibility in the HRTF data. It also allows for HRTF table file names to include "%r" to represent the device's playback rate (e.g. if you set hrtf-%r.mhr, then it will try to use hrtf-44100.mhr or hrtf-48000.mhr depending if the device's output rate is 44100 or 48000, respectively). The makehrtf utility has also been updated to support more options and input file formats, as well as the new mhr format.
* Use the right method to clear a __m128 to 0Chris Robinson2012-09-091-2/+2
|
* Use SSE to do 4 samples at once (non-HRTF direct mix), instead of to apply a ↵Chris Robinson2012-09-091-22/+43
| | | | | | matrix row MaxCHannels no longer needs to be a multiple of 4 now, either.
* Implement MixDirect_SSE separately from the C and Neon versionsChris Robinson2012-09-091-0/+45
|
* Separate the resampling and mixing stepsChris Robinson2012-09-081-8/+0
|
* Minor cleanups for mixer_incChris Robinson2012-08-291-6/+6
|
* Add an SSE-enhanced path for applying the mixer matrixChris Robinson2012-08-291-0/+15
|
* Apply HRTF mixer coefficients with stepping using SSEChris Robinson2012-08-151-2/+32
|
* Make sure the working coefficients are aligned for the SSE mixerChris Robinson2012-08-151-5/+1
|
* Move mixers into separate source filesChris Robinson2012-08-151-0/+48