Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Calculate HRTF stepping params right before mixing | Chris Robinson | 2016-02-14 | 1 | -76/+17 |
| | | | | | 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. | ||||
* | Calculate channel gain stepping just before mixing | Chris Robinson | 2016-02-14 | 1 | -224/+58 |
| | |||||
* | Rename ComputeBFormatGains to ComputeFirstOrderGains | Chris Robinson | 2016-01-31 | 1 | -3/+3 |
| | |||||
* | Properly silence the LFE input channel gain on the source sends | Chris Robinson | 2016-01-30 | 1 | -0/+8 |
| | |||||
* | Fix scaling for effect sends of B-Format sources | Chris Robinson | 2016-01-30 | 1 | -1/+10 |
| | |||||
* | Mix to multichannel for effects | Chris Robinson | 2016-01-28 | 1 | -55/+235 |
| | | | | | | This mixes to a 4-channel first-order ambisonics buffer. With ACN ordering and N3D scaling, this makes it easy to remain compatible with effects that only care about mono input since channel 0 is an unattenuated mono signal. | ||||
* | Pass a pointer to the input samples array for effect processing | Chris Robinson | 2016-01-27 | 1 | -9/+15 |
| | |||||
* | Separate calculating ambisonic coefficients from the panning gains | Chris Robinson | 2016-01-25 | 1 | -5/+11 |
| | |||||
* | Use doubles for the constructed listener matrix | Chris Robinson | 2015-11-11 | 1 | -40/+82 |
| | | | | | | This helps the stability of transforms to local space for sources that are at or near the listener. With a single-precision matrix, even FLT_EPSILON might not be enough to detect matching positions. | ||||
* | Update the bsinc table | Chris Robinson | 2015-11-10 | 1 | -3/+5 |
| | | | | Precision is increased to cover the full 32-bit float range. | ||||
* | Remove a const to silence some warnings | Chris Robinson | 2015-11-06 | 1 | -1/+1 |
| | |||||
* | Use more accurate floating point literals | Chris Robinson | 2015-11-06 | 1 | -6/+6 |
| | |||||
* | Implement a band-limited sinc resampler | Chris Robinson | 2015-11-05 | 1 | -0/+74 |
| | | | | | | | | 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. | ||||
* | Pass in the Q parameter for setting the filter parameters | Chris Robinson | 2015-11-01 | 1 | -16/+24 |
| | | | | Also better handle the peaking filter gain. | ||||
* | Set the current gain immediately if the target is close enough | Chris Robinson | 2015-10-26 | 1 | -2/+8 |
| | |||||
* | Set XYZ channel gains for source sends to 0 | Chris Robinson | 2015-10-23 | 1 | -80/+107 |
| | | | | | 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 | -11/+16 |
| | |||||
* | Return the new vector result from aluMatrixVector | Chris Robinson | 2015-10-22 | 1 | -14/+12 |
| | |||||
* | Remove the MIDI code | Chris Robinson | 2015-10-20 | 1 | -3/+0 |
| | | | | | | | The extension's not going anywhere, and it can't do anything fluidsynth can't. The code maintenance and bloat is not worth keeping around, and ideally the AL API would be able to facilitate MIDI-like behavior anyway (envelopes, start-at- time, etc). | ||||
* | Round the calculated stepping value | Chris Robinson | 2015-10-15 | 1 | -10/+2 |
| | |||||
* | Replace the resample_fir6 declaration with resample_fir8 | Chris Robinson | 2015-10-12 | 1 | -1/+1 |
| | |||||
* | Implement a 6-point sinc-lanczos filter | Chris Robinson | 2015-09-29 | 1 | -0/+1 |
| | |||||
* | Fix resample_fir4 link error | Aaron Jacobs | 2015-09-29 | 1 | -1/+1 |
| | |||||
* | Increase the max pitch to 255 | Chris Robinson | 2015-09-26 | 1 | -3/+0 |
| | | | | | | | 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. | ||||
* | Remove unneeded clamping | Chris Robinson | 2015-09-24 | 1 | -24/+16 |
| | |||||
* | Use N3D scaling instead of FuMa | Chris Robinson | 2015-09-23 | 1 | -7/+7 |
| | |||||
* | Fix updating listener params when forcing updates | Chris Robinson | 2015-09-18 | 1 | -32/+40 |
| | |||||
* | Update properties and clear wet buffers before mixing/processing | Chris Robinson | 2015-09-13 | 1 | -52/+69 |
| | |||||
* | Explicitly convert to int in the aluF2I/S/B functions | Chris Robinson | 2015-09-07 | 1 | -9/+16 |
| | |||||
* | Use ACN ordering for ambisonics coefficients arrays | Chris Robinson | 2015-08-28 | 1 | -4/+8 |
| | | | | | | Note that it still uses FuMa scalings internally. Coefficients loaded from config files specify if they're FuMa (in both ordering and scaling) or N3D, and will get reordered or rescaled as needed. | ||||
* | Avoid temporary vector objects | Chris Robinson | 2015-08-24 | 1 | -9/+13 |
| | |||||
* | Revert "Fix B-Format rotation" | Chris Robinson | 2015-08-24 | 1 | -3/+3 |
| | | | | | | | This reverts commit 7ffb9b3056ab280d5d9408fd023f3cfb370ed103. It was behaving as appropriate before (orienting left did pan it left for the listener), I was apparently just misinterpreting the matrix. | ||||
* | Fix B-Format rotation | Chris Robinson | 2015-08-23 | 1 | -3/+3 |
| | | | | | | | The rotation erroneously specified the orientation of the source relative to the sound field, whereas it should be the orientation of the sound field *and* source relative to the listener. So now when the source is oriented left, the front of the sound field is to the left of the listener. | ||||
* | Change source radius behavior | Chris Robinson | 2015-07-05 | 1 | -19/+33 |
| | | | | | | | | | For sources with a non-0 radius: When distance <= radius, factor = distance/radius*0.5 When distance > radius, factor = 1 - asinf(radius/distance)/PI Also, avoid using Position after calculating the localized direction and distance. | ||||
* | Update a couple comments | Chris Robinson | 2015-07-04 | 1 | -3/+4 |
| | |||||
* | Add an option for "basic" HRTF rendering | Chris Robinson | 2015-02-11 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | This method is intended to help development by easily testing the quality of the B-Format encode and B-Format-to-HRTF decode. When used with HRTF, all sources are renderer using the virtual B-Format output, rather than just B-Format sources. Despite the CPU cost savings (only four channels need to be filtered with HRTF, while sources all render normally), the spatial acuity offered by the B-Format output is pretty poor since it's only first-order ambisonics, so "full" HRTF rendering is definitely preferred. It's /possible/ for some systems to be edge cases that prefer the CPU cost savings provided by basic over the sharper localization provided by full, and you do still get 3D positional cues, but this is unlikely to be an actual use- case in practice. | ||||
* | Use a single statement to declare the buffer format channel maps | Chris Robinson | 2015-02-10 | 1 | -14/+9 |
| | |||||
* | Use B-Format for HRTF's virtual output format | Chris Robinson | 2015-02-09 | 1 | -4/+4 |
| | | | | | | | | This adds the ability to directly decode B-Format with HRTF, though only first- order (WXYZ) for now. Second- and third-order would be easilly doable, however we'd need to be able to up-mix first-order content (from the BFORMAT2D and BFORMAT3D buffer formats) since it would be inappropriate to decode lower-order content with a higher-order decoder. | ||||
* | Properly handle a mono output buffer with the MIDI synths | Chris Robinson | 2015-02-09 | 1 | -1/+1 |
| | |||||
* | Add a comment detailing how the HRTF channel buffer is set up | Chris Robinson | 2015-02-09 | 1 | -19/+45 |
| | |||||
* | Move HRTF params and state closer together | Chris Robinson | 2015-02-09 | 1 | -10/+10 |
| | |||||
* | Cast to the pointer-to-type to increment the buffer | Chris Robinson | 2014-12-21 | 1 | -1/+1 |
| | |||||
* | Avoid duplicate calculations | Chris Robinson | 2014-12-18 | 1 | -4/+4 |
| | |||||
* | Use aluVector and aluMatrix in a couple more places | Chris Robinson | 2014-12-16 | 1 | -45/+30 |
| | |||||
* | Pass a vectory to aluMatrixVector | Chris Robinson | 2014-12-16 | 1 | -20/+23 |
| | |||||
* | Use aluVector in some more places | Chris Robinson | 2014-12-16 | 1 | -37/+30 |
| | |||||
* | Add explicit matrix and vector types to operate with | Chris Robinson | 2014-12-16 | 1 | -40/+37 |
| | |||||
* | Use a lookup table to do cubic resampling | Chris Robinson | 2014-12-15 | 1 | -1/+1 |
| | |||||
* | Don't pass float literals for unsigned ints | Chris Robinson | 2014-12-06 | 1 | -2/+2 |
| | |||||
* | Remove IrSize from DirectParams | Chris Robinson | 2014-11-29 | 1 | -2/+0 |
| |