Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename Voice's NumChannels to OutChannels | Chris Robinson | 2014-11-22 | 1 | -1/+1 |
| | |||||
* | Store the number of output channels in the voice | Chris Robinson | 2014-11-22 | 1 | -1/+1 |
| | |||||
* | Remove an unnecessary union container | Chris Robinson | 2014-11-22 | 1 | -1/+1 |
| | |||||
* | Use a different method for HRTF mixing | Chris Robinson | 2014-11-22 | 1 | -23/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Rename speakers to channels, and remove an old incorrect comment | Chris Robinson | 2014-11-07 | 1 | -1/+1 |
| | |||||
* | Use a separate macro for the max output channel count | Chris Robinson | 2014-11-07 | 1 | -1/+1 |
| | |||||
* | Use the copy resampler only when there's no sub-sample offset | Chris Robinson | 2014-11-02 | 1 | -7/+6 |
| | |||||
* | Add preliminary AL_EXT_BFORMAT support | Chris Robinson | 2014-10-31 | 1 | -0/+17 |
| | | | | | Currently missing the AL_ORIENTATION source property. Gain stepping also does not work. | ||||
* | Rename activesource to voice | Chris Robinson | 2014-08-21 | 1 | -9/+9 |
| | |||||
* | Use a NULL source for inactive activesources | Chris Robinson | 2014-08-21 | 1 | -2/+1 |
| | | | | Also only access the activesource's source field once per update. | ||||
* | Update COPYING to the latest ↵ | François Cami | 2014-08-18 | 1 | -2/+2 |
| | | | | https://www.gnu.org/licenses/old-licenses/lgpl-2.0.txt to fix the FSF' address Fix the FSF' address in the source | ||||
* | Make the source's buffer queue head and current queue item atomic | Chris Robinson | 2014-07-31 | 1 | -13/+14 |
| | |||||
* | Load soundfont samples into an ALbuffer | Chris Robinson | 2014-06-29 | 1 | -15/+15 |
| | | | | | Also remove ALsoundfont's now-unneeded sample storage functions and struct fields. | ||||
* | Get the mixer and resampler functions when needed | Chris Robinson | 2014-06-13 | 1 | -12/+73 |
| | |||||
* | Combine the direct and send mixers | Chris Robinson | 2014-06-13 | 1 | -5/+5 |
| | |||||
* | Combine some dry and wet path types | Chris Robinson | 2014-06-13 | 1 | -1/+1 |
| | |||||
* | Move InitiatePositionArrays to mixer_defs.h | Chris Robinson | 2014-06-06 | 1 | -0/+3 |
| | |||||
* | Avoid a loop when updating the source position variables | Chris Robinson | 2014-06-02 | 1 | -6/+4 |
| | |||||
* | Move the active source's offset out of the direct params | Chris Robinson | 2014-05-24 | 1 | -2/+2 |
| | |||||
* | Use the current buffer item for static sources too | Chris Robinson | 2014-05-21 | 1 | -1/+1 |
| | |||||
* | Properly process all samples with a bandpass filter | Chris Robinson | 2014-05-21 | 1 | -2/+2 |
| | |||||
* | Use the correct input for HRTF mixing | Chris Robinson | 2014-05-21 | 1 | -1/+1 |
| | |||||
* | Update the active source's direct and send properties after each mix | Chris Robinson | 2014-05-21 | 1 | -10/+9 |
| | |||||
* | Return a sample pointer from resamplers | Chris Robinson | 2014-05-19 | 1 | -7/+10 |
| | | | | Both resampling and filtering now avoid copying samples when they no-op. | ||||
* | Put per-channel filter properties together | Chris Robinson | 2014-05-19 | 1 | -11/+14 |
| | |||||
* | Return a sample pointer from DoFilters | Chris Robinson | 2014-05-19 | 1 | -14/+18 |
| | | | | | This allows us to avoid copying samples when no filtering is needed. Doing the same for resampling would require another temporary buffer in the device. | ||||
* | Move an HRTF mixer parameter and shorten a couple variable names | Chris Robinson | 2014-05-18 | 1 | -21/+17 |
| | |||||
* | Don't pass the SendParams to the wet-path mixer | Chris Robinson | 2014-05-18 | 1 | -1/+3 |
| | |||||
* | Don't pass the DirectParams to the dry-path mixer | Chris Robinson | 2014-05-18 | 1 | -2/+3 |
| | |||||
* | Use different parameters for HRTF mixers | Chris Robinson | 2014-05-18 | 1 | -3/+12 |
| | |||||
* | Pass some DirectParams as function parameters | Chris Robinson | 2014-05-18 | 1 | -1/+3 |
| | |||||
* | Add a ALfilterState method to process multiple samples at once | Chris Robinson | 2014-05-18 | 1 | -9/+11 |
| | |||||
* | Apply high-pass source filters as needed | Chris Robinson | 2014-05-17 | 1 | -5/+20 |
| | |||||
* | Add a flag to specify when the low-pass filter needs to apply | Chris Robinson | 2014-05-17 | 1 | -8/+17 |
| | |||||
* | Ensure that LoopEnd > LoopStart | Chris Robinson | 2014-05-15 | 1 | -0/+1 |
| | | | | | | For the benefit of Clang's static analysis, which doesn't know that a static source will always have a valid buffer and a buffer must have a non-0 loop range. | ||||
* | Store the current buffer queue item, rather than played buffer count | Chris Robinson | 2014-05-10 | 1 | -22/+11 |
| | |||||
* | Avoid checking the previous buffer multiple times | Chris Robinson | 2014-05-10 | 1 | -9/+9 |
| | |||||
* | Remove an unnecessary conditional | Chris Robinson | 2014-03-23 | 1 | -7/+1 |
| | |||||
* | Remove the last bits of the predictive sample processing | Chris Robinson | 2014-03-23 | 1 | -3/+1 |
| | |||||
* | Remove the click removal buffers for auxiliary effect slots | Chris Robinson | 2014-03-23 | 1 | -2/+1 |
| | |||||
* | Remove the now-unneeded click removal buffers for the device | Chris Robinson | 2014-03-23 | 1 | -2/+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 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 | -3/+3 |
| | |||||
* | Store the HrtfState directly in the DirectParams | Chris Robinson | 2014-03-23 | 1 | -4/+4 |
| | |||||
* | Store some source mixing parameters in the active source struct | Chris Robinson | 2014-03-19 | 1 | -10/+11 |
| | |||||
* | Fix a comment | Chris Robinson | 2013-10-26 | 1 | -1/+1 |
| | |||||
* | Don't store the effect slot in SendParams | Chris Robinson | 2013-10-06 | 1 | -1/+1 |
| | | | | This makes it much more like DirectParams. | ||||
* | Rename Filter param member to LpFilter | Chris Robinson | 2013-10-06 | 1 | -2/+2 |
| | |||||
* | Use C99's inline instead of __inline | Chris Robinson | 2013-05-28 | 1 | -3/+3 |
| | |||||
* | Use ALfilterState for the source direct and send filters | Chris Robinson | 2013-05-27 | 1 | -5/+5 |
| |