Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Set gains using the device channel index | Chris Robinson | 2014-11-05 | 1 | -16/+10 |
| | |||||
* | Use a method to set omni-directional channel gains | Chris Robinson | 2014-11-04 | 1 | -1/+4 |
| | |||||
* | Add some missing breaks | Chris Robinson | 2014-11-02 | 1 | -0/+2 |
| | |||||
* | Avoid the ALCdevice_Lock/Unlock wrapper in some places | Chris Robinson | 2014-11-01 | 1 | -2/+3 |
| | |||||
* | Support B-Format source rotation with AL_ORIENTATION | Chris Robinson | 2014-10-31 | 1 | -1/+42 |
| | |||||
* | Rename the source's Orientation to Direction | Chris Robinson | 2014-10-31 | 1 | -3/+3 |
| | |||||
* | Add preliminary AL_EXT_BFORMAT support | Chris Robinson | 2014-10-31 | 1 | -1/+32 |
| | | | | | Currently missing the AL_ORIENTATION source property. Gain stepping also does not work. | ||||
* | Don't attempt to match a channel input to output | Chris Robinson | 2014-10-12 | 1 | -24/+7 |
| | | | | | | | | | I don't like this, but it's currently necessary. The problem is that the ambisonics-based panning does not maintain consistent energy output, which causes sounds mapped directly to an output channel to be louder compared to when being panned. The inconcistent energy output is partly by design, as it's trying to render a full 3D sound field and at least attempts to correct for imbalanced speaker layouts. | ||||
* | Avoid taking the square-root of the ambient gain | Chris Robinson | 2014-10-11 | 1 | -21/+10 |
| | | | | | | Although it is more correct for preserving the apparent volume, the ambisonics- based panning does not work on the same power scale, making it louder by comparison. | ||||
* | Add a helper to search for a channel index by name | Chris Robinson | 2014-10-02 | 1 | -10/+4 |
| | |||||
* | Make ComputeAngleGains use ComputeDirectionalGains | Chris Robinson | 2014-10-02 | 1 | -54/+65 |
| | |||||
* | Use helpers to set the gain step values | Chris Robinson | 2014-10-02 | 1 | -142/+73 |
| | |||||
* | Add a cast for MSVC | Chris Robinson | 2014-09-30 | 1 | -1/+1 |
| | |||||
* | Use an ambisonics-based panning method | Chris Robinson | 2014-09-30 | 1 | -15/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/ | ||||
* | Combine some fields into a struct | Chris Robinson | 2014-09-10 | 1 | -6/+6 |
| | |||||
* | Invert the ChannelOffsets array | Chris Robinson | 2014-09-10 | 1 | -4/+7 |
| | |||||
* | Rename activesource to voice | Chris Robinson | 2014-08-21 | 1 | -132/+132 |
| | |||||
* | Use an array of objects for active sources instead of pointers | Chris Robinson | 2014-08-21 | 1 | -8/+8 |
| | |||||
* | Use a NULL source for inactive activesources | Chris Robinson | 2014-08-21 | 1 | -12/+12 |
| | | | | 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 | ||||
* | Use atomics for the device and context list heads | Chris Robinson | 2014-08-01 | 1 | -2/+2 |
| | |||||
* | Make the source's buffer queue head and current queue item atomic | Chris Robinson | 2014-07-31 | 1 | -3/+3 |
| | |||||
* | Explicitly pass the address of atomics and parameters that can be modified | Chris Robinson | 2014-07-26 | 1 | -4/+4 |
| | |||||
* | Use generic atomics in more places | Chris Robinson | 2014-07-22 | 1 | -2/+2 |
| | |||||
* | Add macros for generic atomic functionality | Chris Robinson | 2014-07-22 | 1 | -2/+2 |
| | |||||
* | Add a source radius property that determines the directionality of a sound | Chris Robinson | 2014-07-11 | 1 | -9/+12 |
| | | | | | | | | | At 0 distance from the listener, the sound is omni-directional. As the source and listener become 'radius' units apart, the sound becomes more directional. With HRTF, an omni-directional sound is handled using 0-delay, pass-through filter coefficients, which is blended with the real delay and coefficients as needed to become more directional. | ||||
* | Remove unused variables | Chris Robinson | 2014-06-13 | 1 | -4/+0 |
| | |||||
* | Get the mixer and resampler functions when needed | Chris Robinson | 2014-06-13 | 1 | -65/+0 |
| | |||||
* | Combine the direct and send mixers | Chris Robinson | 2014-06-13 | 1 | -28/+11 |
| | |||||
* | Combine some dry and wet path types | Chris Robinson | 2014-06-13 | 1 | -50/+45 |
| | |||||
* | Add SSE2 and SSE4.1 linear resamplers | Timothy Arceri | 2014-06-06 | 1 | -0/+8 |
| | | | | | Currently the only way SSE 4.1 is detected is by using __get_cpuid, i.e. with GCC. Windows' IsProcessorFeaturePresent does not report SSE4.1 capabilities. | ||||
* | Avoid a loop when updating the source position variables | Chris Robinson | 2014-06-02 | 1 | -4/+8 |
| | |||||
* | Don't clear the current and step gain values when updating a source | Chris Robinson | 2014-05-21 | 1 | -89/+66 |
| | |||||
* | Put per-channel filter properties together | Chris Robinson | 2014-05-19 | 1 | -20/+20 |
| | |||||
* | Don't pass the DirectParams to the dry-path mixer | Chris Robinson | 2014-05-18 | 1 | -51/+74 |
| | |||||
* | Use different parameters for HRTF mixers | Chris Robinson | 2014-05-18 | 1 | -6/+11 |
| | |||||
* | Apply high-pass source filters as needed | Chris Robinson | 2014-05-17 | 1 | -5/+48 |
| | |||||
* | Add a flag to specify when the low-pass filter needs to apply | Chris Robinson | 2014-05-17 | 1 | -8/+16 |
| | |||||
* | Store the filter reference frequency in the source | Chris Robinson | 2014-05-11 | 1 | -12/+20 |
| | |||||
* | Update the source send target gains properly | Chris Robinson | 2014-05-11 | 1 | -4/+4 |
| | |||||
* | Use a struct to store the source's direct gain/gainhf properties | Chris Robinson | 2014-05-11 | 1 | -6/+6 |
| | |||||
* | Update the output buffer pointer in the Write_* methods | Chris Robinson | 2014-05-10 | 1 | -15/+11 |
| | |||||
* | Add a couple consts | Chris Robinson | 2014-05-10 | 1 | -2/+2 |
| | |||||
* | Store the current buffer queue item, rather than played buffer count | Chris Robinson | 2014-05-10 | 1 | -1/+1 |
| | |||||
* | Better pack HRTF mixing properties | Chris Robinson | 2014-05-03 | 1 | -24/+24 |
| | |||||
* | Clamp the current and target gain lower bound to epsilon | Chris Robinson | 2014-05-03 | 1 | -10/+10 |
| | | | | | Should give a bit more wiggle room for the gain stepping to get lower than the silence threshold. | ||||
* | 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 | -38/+0 |
| | |||||
* | Add gain stepping to the send mixers | Chris Robinson | 2014-03-23 | 1 | -2/+42 |
| | |||||
* | Remove the now-unneeded click removal buffers for the device | Chris Robinson | 2014-03-23 | 1 | -47/+8 |
| | | | | | | 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. |