Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Implement a band-limited sinc resampler | Chris Robinson | 2015-11-05 | 1 | -1/+997 |
| | | | | | | | | 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. | ||||
* | Change the Kaiser rippling limit to -60dB | Chris Robinson | 2015-11-04 | 1 | -2/+2 |
| | | | | | This improves the transition cutoff, shortening its width and reducing the amount of error. | ||||
* | Replace the Lanczos window with Kaiser for the sinc resampler | Chris Robinson | 2015-11-04 | 1 | -17/+87 |
| | |||||
* | Update filter histories even when they're not used | Chris Robinson | 2015-10-24 | 1 | -0/+4 |
| | | | | | | If the filter properties are continually updated, and the HF or LF gain goes from <1, to 1, and later back to <1, the history shouldn't hold stale values from before it was at 1. | ||||
* | Set XYZ channel gains for source sends to 0 | Chris Robinson | 2015-10-23 | 1 | -18/+0 |
| | | | | | It's cleaner to just set the gains to 0 rather than to special-case B-Format in the mixer. | ||||
* | Use one send gain per buffer channel | Chris Robinson | 2015-10-23 | 1 | -1/+1 |
| | |||||
* | Use a constant value for the post-position padding | Chris Robinson | 2015-10-15 | 1 | -33/+20 |
| | |||||
* | Store the source's previous samples with the voice | Chris Robinson | 2015-10-15 | 1 | -92/+32 |
| | | | | | | This helps avoid different results when looping is toggled within a couple samples of the loop point, or when a processed buffer is removed while the source is only a couple samples into the next buffer. | ||||
* | Replace the sinc6 resampler with sinc8, and make SSE versions | Chris Robinson | 2015-10-11 | 1 | -13/+23 |
| | |||||
* | Move the FIR4 from SSE2 to SSE3 | Chris Robinson | 2015-10-11 | 1 | -3/+3 |
| | | | | | SSE3 can avoid the slow _MM_TRANSPOSE_PS4 call thanks to the inclusion of horizontal adds. | ||||
* | Use doubles to calculate the Lanczos coefficients | Chris Robinson | 2015-10-09 | 1 | -20/+20 |
| | |||||
* | Combine two arrays | Chris Robinson | 2015-10-01 | 1 | -13/+11 |
| | |||||
* | Move the resampler stuff to mixer.c where it's used | Chris Robinson | 2015-10-01 | 1 | -0/+53 |
| | |||||
* | Implement a 6-point sinc-lanczos filter | Chris Robinson | 2015-09-29 | 1 | -12/+26 |
| | |||||
* | Replace the cubic resampler with a 4-point sinc/lanczos filter | Chris Robinson | 2015-09-27 | 1 | -10/+19 |
| | |||||
* | Don't keep selecting the mixer to use | Chris Robinson | 2015-09-27 | 1 | -30/+32 |
| | |||||
* | Increase the max pitch to 255 | Chris Robinson | 2015-09-26 | 1 | -0/+3 |
| | | | | | | | Note that this is the multiple above the device sample rate, rather than the source property limit. It could theoretically be increased to 511 by testing against UINT_MAX instead of INT_MAX, since the increment and positions are using unsigned integers. I'm just being paranoid about overflows. | ||||
* | Move HRTF params and state closer together | Chris Robinson | 2015-02-09 | 1 | -2/+2 |
| | |||||
* | Do up to 256 samples at a time with multi-step loops | Chris Robinson | 2014-12-18 | 1 | -2/+2 |
| | |||||
* | Inline a couple functions | Chris Robinson | 2014-12-18 | 1 | -2/+2 |
| | |||||
* | Offset to the buffer's channel start first | Chris Robinson | 2014-12-18 | 1 | -3/+6 |
| | |||||
* | Assert that there's a buffer for mixing | Chris Robinson | 2014-12-17 | 1 | -0/+1 |
| | | | | For Clang's static analysis. | ||||
* | Add SSE2 and SSE4.1 cubic resamplers | Chris Robinson | 2014-12-15 | 1 | -0/+8 |
| | |||||
* | Use a lookup table to do cubic resampling | Chris Robinson | 2014-12-15 | 1 | -0/+17 |
| | |||||
* | Remove IrSize from DirectParams | Chris Robinson | 2014-11-29 | 1 | -1/+4 |
| | |||||
* | Partially revert "Use a different method for HRTF mixing" | Chris Robinson | 2014-11-23 | 1 | -2/+23 |
| | | | | | | | | | | | | 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. | ||||
* | 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. |