Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Calculate HRTF stepping params right before mixing | Chris Robinson | 2016-02-14 | 1 | -27/+31 |
| | | | | | 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. | ||||
* | Define MixHrtf directly instead of through a SUFFIX macro | Chris Robinson | 2015-08-15 | 1 | -12/+0 |
| | |||||
* | Use a separate method to set initial HRTF coefficients | Chris Robinson | 2014-11-24 | 1 | -6/+4 |
| | |||||
* | Partially revert "Use a different method for HRTF mixing" | Chris Robinson | 2014-11-23 | 1 | -8/+40 |
| | | | | | | | | | | | | 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 mixing | Chris Robinson | 2014-11-22 | 1 | -43/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | 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 mixers | Chris Robinson | 2014-06-13 | 1 | -9/+9 |
| | |||||
* | Move an HRTF mixer parameter and shorten a couple variable names | Chris Robinson | 2014-05-18 | 1 | -3/+2 |
| | |||||
* | Use different parameters for HRTF mixers | Chris Robinson | 2014-05-18 | 1 | -10/+4 |
| | |||||
* | Pass some DirectParams as function parameters | Chris Robinson | 2014-05-18 | 1 | -8/+7 |
| | |||||
* | Remove a dead assignment | Chris Robinson | 2014-05-14 | 1 | -1/+0 |
| | |||||
* | Better pack HRTF mixing properties | Chris Robinson | 2014-05-03 | 1 | -32/+27 |
| | |||||
* | Use C11 alignas when available | Chris Robinson | 2014-04-19 | 1 | -1/+3 |
| | |||||
* | Make HRTF stepping values per-channel | Chris Robinson | 2014-04-05 | 1 | -2/+2 |
| | |||||
* | Remove the now-unneeded click removal buffers for the device | Chris Robinson | 2014-03-23 | 1 | -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. | ||||
* | Don't feed the HRTF mix to the click removal and pending click buffers | Chris Robinson | 2014-03-23 | 1 | -40/+3 |
| | | | | | The coefficients (which control the volume and panning) already use stepping to non-abruptly fade the mix. | ||||
* | Step mixing gains per-sample for non-HRTF mixing | Chris Robinson | 2014-03-23 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Move the step counter and moving flag to DirectParams | Chris Robinson | 2014-03-23 | 1 | -1/+1 |
| | |||||
* | Store the HrtfState directly in the DirectParams | Chris Robinson | 2014-03-23 | 1 | -5/+5 |
| | |||||
* | Use a union to combine HRTF and non-HRTF mixer params | Chris Robinson | 2014-03-19 | 1 | -9/+9 |
| | |||||
* | Revert "Apply HRTF coefficient stepping separately" | Chris Robinson | 2014-02-23 | 1 | -4/+5 |
| | | | | | | | | | This reverts commit 25b9c3d0c15e959d544f5d0ac7ea507ea5f6d69f. Conflicts: Alc/mixer_neon.c Unfortunately this also undoes the Neon-enhanced ApplyCoeffsStep method. | ||||
* | Move HRTF macros and function declarations to a separate header | Chris Robinson | 2014-02-23 | 1 | -0/+1 |
| | |||||
* | Apply HRTF coefficient stepping separately | Chris Robinson | 2013-11-10 | 1 | -5/+4 |
| | |||||
* | Use C99's inline instead of __inline | Chris Robinson | 2013-05-28 | 1 | -9/+9 |
| | |||||
* | Use restrict instead of RESTRICT | Chris Robinson | 2013-05-22 | 1 | -15/+15 |
| | |||||
* | Put the HRTF DirectParams into an anonymous struct | Chris Robinson | 2012-10-15 | 1 | -9/+9 |
| | |||||
* | Constify the direct and send parameters given to the mixer | Chris Robinson | 2012-10-15 | 1 | -5/+5 |
| | |||||
* | Remove the unused Device parameter | Chris Robinson | 2012-10-14 | 1 | -3/+1 |
| | |||||
* | Store the output buffers in the DirectParams struct | Chris Robinson | 2012-10-14 | 1 | -3/+4 |
| | |||||
* | Remove the now-unused Source parameter from the DryMix methods | Chris Robinson | 2012-10-14 | 1 | -2/+1 |
| | |||||
* | Store some more HRTF info in the DirectParams struct | Chris Robinson | 2012-10-14 | 1 | -5/+6 |
| | |||||
* | Avoid building redundant mixers | Chris Robinson | 2012-09-16 | 1 | -72/+0 |
| | |||||
* | Minor cleanups for variable declarations | Chris Robinson | 2012-09-11 | 1 | -25/+13 |
| | |||||
* | Use a non-interleaved DryBuffer | Chris Robinson | 2012-09-11 | 1 | -11/+10 |
| | |||||
* | Do the filtering separately from the mixing | Chris Robinson | 2012-09-11 | 1 | -34/+11 |
| | |||||
* | Update HRTF code | Chris Robinson | 2012-09-11 | 1 | -7/+10 |
| | | | | | | | | | | | 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. | ||||
* | Implement MixDirect_SSE separately from the C and Neon versions | Chris Robinson | 2012-09-09 | 1 | -7/+13 |
| | |||||
* | Move the target effect slot to the SendParams struct | Chris Robinson | 2012-09-08 | 1 | -3/+2 |
| | |||||
* | Separate the resampling and mixing steps | Chris Robinson | 2012-09-08 | 1 | -208/+141 |
| | |||||
* | Minor cleanups for mixer_inc | Chris Robinson | 2012-08-29 | 1 | -17/+21 |
| | |||||
* | Add an SSE-enhanced path for applying the mixer matrix | Chris Robinson | 2012-08-29 | 1 | -7/+15 |
| | |||||
* | Place the alignment attribute before the variable declaration | Chris Robinson | 2012-08-16 | 1 | -1/+1 |
| | |||||
* | Apply HRTF mixer coefficients with stepping using SSE | Chris Robinson | 2012-08-15 | 1 | -9/+1 |
| | |||||
* | Make sure the working coefficients are aligned for the SSE mixer | Chris Robinson | 2012-08-15 | 1 | -1/+1 |
| | |||||
* | Move mixers into separate source files | Chris Robinson | 2012-08-15 | 1 | -0/+305 |