aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_defs.h
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Implement an SSE linear resamplerChris Robinson2012-09-141-0/+3
|
* Use a source param for the resampler and move them to the mixer sourceChris Robinson2012-09-141-0/+6
|
* Do the filtering separately from the mixingChris Robinson2012-09-111-3/+3
|
* Move the target effect slot to the SendParams structChris Robinson2012-09-081-3/+3
|
* Separate the resampling and mixing stepsChris Robinson2012-09-081-41/+9
|
* Move mixers into separate source filesChris Robinson2012-08-151-0/+60