Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Store default speaker configurations in a struct | Chris Robinson | 2014-10-02 | 1 | -11/+14 |
| | |||||
* | Make ComputeAngleGains use ComputeDirectionalGains | Chris Robinson | 2014-10-02 | 2 | -5/+6 |
| | |||||
* | 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 | 2 | -0/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | -3/+6 |
| | |||||
* | Invert the ChannelOffsets array | Chris Robinson | 2014-09-10 | 1 | -1/+2 |
| | |||||
* | Remove the GetLatency method from the old BackendFuncs | Chris Robinson | 2014-09-08 | 1 | -4/+0 |
| | |||||
* | Convert the winmm backend to the new backend API | Chris Robinson | 2014-09-08 | 1 | -3/+0 |
| | |||||
* | Make the fontsound's buffer and link fields atomic | Chris Robinson | 2014-09-03 | 3 | -17/+25 |
| | |||||
* | Protect alProcessUpdatesSOFT with a lock | Chris Robinson | 2014-09-03 | 1 | -2/+2 |
| | |||||
* | Use proper atomics for the thunk array | Chris Robinson | 2014-09-03 | 1 | -12/+13 |
| | |||||
* | Make the buffer's pack and unpack properties atomic | Chris Robinson | 2014-09-03 | 2 | -11/+11 |
| | |||||
* | Remove a couple unnecessary typedefs | Chris Robinson | 2014-08-24 | 1 | -3/+0 |
| | |||||
* | Convert the wave writer backend to the new API | Chris Robinson | 2014-08-24 | 1 | -3/+0 |
| | |||||
* | Use al_malloc/al_free for default allocators | Chris Robinson | 2014-08-24 | 1 | -2/+2 |
| | |||||
* | Rename activesource to voice | Chris Robinson | 2014-08-21 | 5 | -52/+51 |
| | |||||
* | Use an array of objects for active sources instead of pointers | Chris Robinson | 2014-08-21 | 3 | -48/+37 |
| | |||||
* | Use a NULL source for inactive activesources | Chris Robinson | 2014-08-21 | 4 | -36/+45 |
| | | | | Also only access the activesource's source field once per update. | ||||
* | Update COPYING to the latest ↵ | François Cami | 2014-08-18 | 10 | -20/+20 |
| | | | | https://www.gnu.org/licenses/old-licenses/lgpl-2.0.txt to fix the FSF' address Fix the FSF' address in the source | ||||
* | ALC_SOFT_pause_device is finished | Chris Robinson | 2014-08-12 | 1 | -10/+0 |
| | |||||
* | Disable the autowah effect | Chris Robinson | 2014-08-06 | 1 | -0/+2 |
| | | | | | | | | There's apparently some issues with it causing noise or killing the output. It might be due to the per-sample changes being too harsh for the filter to keep up with, but it's not something I can take care of in time for release. This commit should be reverted after release when work on fixing it can resume. | ||||
* | Fix some lock ordering to avoid potential deadlocks | Chris Robinson | 2014-08-03 | 1 | -8/+8 |
| | |||||
* | Use an ATOMIC_INIT macro instead of ATOMIC_LOAD_UNSAFE | Chris Robinson | 2014-08-03 | 2 | -4/+4 |
| | |||||
* | Add some casts for inline assembly atomics | Chris Robinson | 2014-08-01 | 1 | -1/+1 |
| | | | | And remove an unnecessary void cast | ||||
* | 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 | 2 | -60/+72 |
| | |||||
* | Rename ATOMIC_COMPARE_EXCHANGE to ATOMIC_COMPARE_EXCHANGE_STRONG | Chris Robinson | 2014-07-31 | 1 | -1/+1 |
| | |||||
* | Always set the active source's update method | Chris Robinson | 2014-07-26 | 1 | -5/+7 |
| | | | | | | | If the source is stopped, changes its buffer, then played again quickly, the source will never be removed from the active source list causing the update method to remain as it was. If the buffer was changed between mono and multi- channel, this causes it to use the wrong method. | ||||
* | Explicitly pass the address of atomics and parameters that can be modified | Chris Robinson | 2014-07-26 | 5 | -49/+49 |
| | |||||
* | Support C11 atomics | Chris Robinson | 2014-07-23 | 1 | -1/+2 |
| | |||||
* | Use generic atomics in more places | Chris Robinson | 2014-07-22 | 5 | -10/+10 |
| | |||||
* | Add macros for generic atomic functionality | Chris Robinson | 2014-07-22 | 6 | -44/+44 |
| | |||||
* | Make some functions static | Chris Robinson | 2014-07-20 | 2 | -6/+4 |
| | |||||
* | Load the default soundfont as a comma-separate list of filename | Chris Robinson | 2014-07-19 | 1 | -6/+27 |
| | | | | | | This allows multiple soundfont files to be "patched" together to create a single soundfont. For instance a GM soundfont with a separate soundfont for GS-only additions. | ||||
* | Add a source radius property that determines the directionality of a sound | Chris Robinson | 2014-07-11 | 2 | -0/+4 |
| | | | | | | | | | 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. | ||||
* | Store 4 modulators per map entry | Chris Robinson | 2014-07-06 | 2 | -8/+14 |
| | |||||
* | Regroup and reorganize some macros | Chris Robinson | 2014-07-06 | 1 | -40/+57 |
| | |||||
* | Use VECTOR_FIND_IF instead of a manual loop | Chris Robinson | 2014-07-06 | 1 | -11/+7 |
| | |||||
* | Allow ALsoundfont_deleteSoundfont to handle multiple buffers | Chris Robinson | 2014-07-06 | 1 | -10/+20 |
| | |||||
* | Don't require pre-declaring vector types | Chris Robinson | 2014-07-06 | 2 | -11/+6 |
| | |||||
* | Avoid aliasing an int array | Chris Robinson | 2014-07-05 | 1 | -4/+4 |
| | |||||
* | Make some more functions static | Chris Robinson | 2014-07-05 | 2 | -7/+6 |
| | |||||
* | Use a helper function to check valid MIDI controller inputs | Chris Robinson | 2014-07-04 | 2 | -4/+15 |
| | |||||
* | Make a function static | Chris Robinson | 2014-07-04 | 1 | -2/+2 |
| | |||||
* | AL_SOFT_MSADPCM is functionally complete | Chris Robinson | 2014-07-03 | 1 | -6/+0 |
| | |||||
* | Simplify setting a fontsound link | Chris Robinson | 2014-07-01 | 1 | -10/+6 |
| | |||||
* | Check that a fontsound is NOT null before deleting it | Chris Robinson | 2014-07-01 | 1 | -1/+1 |
| | |||||
* | Remove an unused variable | Chris Robinson | 2014-07-01 | 1 | -2/+0 |
| | |||||
* | Standardize some New/Delete methods | Chris Robinson | 2014-06-30 | 6 | -27/+32 |
| | |||||
* | Remove an unused macro | Chris Robinson | 2014-06-29 | 1 | -1/+0 |
| |