Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make ComputeAngleGains use ComputeDirectionalGains | Chris Robinson | 2014-10-02 | 1 | -5/+5 |
| | |||||
* | Don't use ComputeAngleGains for SetGains | Chris Robinson | 2014-10-02 | 1 | -1/+5 |
| | |||||
* | Use an ambisonics-based panning method | Chris Robinson | 2014-09-30 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For mono sources, third-order ambisonics is utilized to generate panning gains. The general idea is that a panned mono sound can be encoded into b-format ambisonics as: w[i] = sample[i] * 0.7071; x[i] = sample[i] * dir[0]; y[i] = sample[i] * dir[1]; ... and subsequently rendered using: output[chan][i] = w[i] * w_coeffs[chan] + x[i] * x_coeffs[chan] + y[i] * y_coeffs[chan] + ...; By reordering the math, channel gains can be generated by doing: gain[chan] = 0.7071 * w_coeffs[chan] + dir[0] * x_coeffs[chan] + dir[1] * y_coeffs[chan] + ...; which then get applied as normal: output[chan][i] = sample[i] * gain[chan]; One of the reasons to use ambisonics for panning is that it provides arguably better reproduction for sounds emanating from between two speakers. As well, this makes it easier to pan in all 3 dimensions, with for instance a "3D7.1" or 8-channel cube speaker configuration by simply providing the necessary coefficients (this will need some work since some methods still use angle-based panpot, particularly multi-channel sources). Unfortunately, the math to reliably generate the coefficients for a given speaker configuration is too costly to do at run-time. They have to be pre- generated based on a pre-specified speaker arangement, which means the config options for tweaking speaker angles are no longer supportable. Eventually I hope to provide config options for custom coefficients, which can either be generated and written in manually, or via alsoft-config from user-specified speaker positions. The current default set of coefficients were generated using the MATLAB scripts (compatible with GNU Octave) from the excellent Ambisonic Decoder Toolbox, at https://bitbucket.org/ambidecodertoolbox/adt/ | ||||
* | Rename activesource to voice | Chris Robinson | 2014-08-21 | 1 | -4/+4 |
| | |||||
* | Use a NULL source for inactive activesources | Chris Robinson | 2014-08-21 | 1 | -3/+7 |
| | | | | Also only access the activesource's source field once per update. | ||||
* | Combine the direct and send mixers | Chris Robinson | 2014-06-13 | 1 | -3/+3 |
| | |||||
* | Combine some dry and wet path types | Chris Robinson | 2014-06-13 | 1 | -15/+6 |
| | |||||
* | Avoid a loop when updating the source position variables | Chris Robinson | 2014-06-02 | 1 | -0/+2 |
| | |||||
* | Move the active source's offset out of the direct params | Chris Robinson | 2014-05-24 | 1 | -2/+0 |
| | |||||
* | Return a sample pointer from resamplers | Chris Robinson | 2014-05-19 | 1 | -2/+2 |
| | | | | Both resampling and filtering now avoid copying samples when they no-op. | ||||
* | Put per-channel filter properties together | Chris Robinson | 2014-05-19 | 1 | -8/+12 |
| | |||||
* | Move an HRTF mixer parameter and shorten a couple variable names | Chris Robinson | 2014-05-18 | 1 | -3/+3 |
| | |||||
* | Don't pass the SendParams to the wet-path mixer | Chris Robinson | 2014-05-18 | 1 | -11/+13 |
| | |||||
* | Don't pass the DirectParams to the dry-path mixer | Chris Robinson | 2014-05-18 | 1 | -12/+13 |
| | |||||
* | Use different parameters for HRTF mixers | Chris Robinson | 2014-05-18 | 1 | -0/+4 |
| | |||||
* | Pass some DirectParams as function parameters | Chris Robinson | 2014-05-18 | 1 | -2/+3 |
| | |||||
* | Apply high-pass source filters as needed | Chris Robinson | 2014-05-17 | 1 | -0/+4 |
| | |||||
* | Add a flag to specify when the low-pass filter needs to apply | Chris Robinson | 2014-05-17 | 1 | -13/+21 |
| | |||||
* | Better pack HRTF mixing properties | Chris Robinson | 2014-05-03 | 1 | -11/+11 |
| | |||||
* | Clamp the current and target gain lower bound to epsilon | Chris Robinson | 2014-05-03 | 1 | -1/+1 |
| | | | | | Should give a bit more wiggle room for the gain stepping to get lower than the silence threshold. | ||||
* | Use C11 alignas when available | Chris Robinson | 2014-04-19 | 1 | -4/+6 |
| | |||||
* | Make HRTF stepping values per-channel | Chris Robinson | 2014-04-05 | 1 | -2/+2 |
| | |||||
* | Remove the click removal buffers for auxiliary effect slots | Chris Robinson | 2014-03-23 | 1 | -4/+1 |
| | |||||
* | Add gain stepping to the send mixers | Chris Robinson | 2014-03-23 | 1 | -1/+8 |
| | |||||
* | Remove the now-unneeded click removal buffers for the device | Chris Robinson | 2014-03-23 | 1 | -4/+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 | -2/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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 | -2/+4 |
| | |||||
* | Store the HrtfState directly in the DirectParams | Chris Robinson | 2014-03-23 | 1 | -3/+3 |
| | |||||
* | Move some HRTF and mixer structs to alu.h | Chris Robinson | 2014-03-22 | 1 | -6/+60 |
| | |||||
* | Store some source mixing parameters in the active source struct | Chris Robinson | 2014-03-19 | 1 | -3/+3 |
| | |||||
* | Add min/max/clamp methods for doubles | Chris Robinson | 2013-11-27 | 1 | -0/+7 |
| | |||||
* | Use C99 inline in more places | Chris Robinson | 2013-11-04 | 1 | -18/+18 |
| | |||||
* | Use a helper macro for pi*2 | Chris Robinson | 2013-10-08 | 1 | -0/+1 |
| | |||||
* | Use helper macros to convert between degrees and radians | Chris Robinson | 2013-10-08 | 1 | -2/+5 |
| | |||||
* | Use a macro for the silence threshold | Chris Robinson | 2013-10-06 | 1 | -0/+2 |
| | |||||
* | Use helpers to set channel gain arrays | Chris Robinson | 2013-10-03 | 1 | -1/+18 |
| | | | | Also avoid unnecessary clearing. | ||||
* | Use C99's inline instead of __inline | Chris Robinson | 2013-05-28 | 1 | -17/+17 |
| | |||||
* | Use restrict instead of RESTRICT | Chris Robinson | 2013-05-22 | 1 | -3/+3 |
| | |||||
* | Lock the device before calling aluHandleDisconnect | Chris Robinson | 2012-12-02 | 1 | -0/+1 |
| | | | | | | PulseAudio causes an assert if being relocked inside a callback on the worker thread, where aluHandleDisconnect is called. We can assume it's already locked there, so just make sure the device is locked before being calling it. | ||||
* | Move some math functions to where they're used | Chris Robinson | 2012-10-25 | 1 | -26/+0 |
| | |||||
* | Remove the float math wrapper functions | Chris Robinson | 2012-10-25 | 1 | -55/+0 |
| | |||||
* | Constify the direct and send parameters given to the mixer | Chris Robinson | 2012-10-15 | 1 | -2/+2 |
| | |||||
* | Remove the unused Device parameter | Chris Robinson | 2012-10-14 | 1 | -1/+1 |
| | |||||
* | Remove the now-unused Source parameter from the DryMix methods | Chris Robinson | 2012-10-14 | 1 | -2/+1 |
| | |||||
* | Check the distance against epsilon to determine if it matches | Chris Robinson | 2012-10-12 | 1 | -0/+5 |
| | |||||
* | Remove an unneeded parameter from the resampler | Chris Robinson | 2012-09-27 | 1 | -2/+1 |
| | |||||
* | Use a source param for the resampler and move them to the mixer source | Chris Robinson | 2012-09-14 | 1 | -0/+4 |
| | |||||
* | Move a couple macros to more appropriate headers | Chris Robinson | 2012-09-14 | 1 | -0/+3 |
| | |||||
* | Fix up some more header includes | Chris Robinson | 2012-09-14 | 1 | -11/+1 |
| | |||||
* | Don't include alu.h in alMain.h | Chris Robinson | 2012-09-14 | 1 | -40/+0 |
| |