Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use helpers to set the gain step values | Chris Robinson | 2014-10-02 | 1 | -142/+73 |
| | |||||
* | Use VECTOR_FIND_IF instead of manual loops | Chris Robinson | 2014-09-30 | 1 | -42/+38 |
| | |||||
* | Add a cast for MSVC | Chris Robinson | 2014-09-30 | 1 | -1/+1 |
| | |||||
* | Copy the null terminator from the string instead of appending it | Chris Robinson | 2014-09-30 | 1 | -4/+1 |
| | |||||
* | Use size_t for the vector size and capacity | Chris Robinson | 2014-09-30 | 4 | -30/+23 |
| | |||||
* | Use an ambisonics-based panning method | Chris Robinson | 2014-09-30 | 2 | -130/+121 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | 8 | -132/+127 |
| | |||||
* | Invert the ChannelOffsets array | Chris Robinson | 2014-09-10 | 2 | -55/+58 |
| | |||||
* | Use a wave file channel mask based on the actual format | Chris Robinson | 2014-09-10 | 1 | -14/+12 |
| | |||||
* | Remove some unnecessary config options | Chris Robinson | 2014-09-08 | 1 | -18/+8 |
| | |||||
* | Use a vector instead of a manual dynamic array | Chris Robinson | 2014-09-08 | 1 | -150/+90 |
| | |||||
* | Don't modify a capture device's format | Chris Robinson | 2014-09-08 | 1 | -168/+7 |
| | | | | | | OpenAL's capture API guarantees the application gets the format requested, or else the device will fail to open. The only valid change is that the capture buffer can be larger than requested. | ||||
* | Remove the GetLatency method from the old BackendFuncs | Chris Robinson | 2014-09-08 | 8 | -43/+10 |
| | |||||
* | Convert the winmm backend to the new backend API | Chris Robinson | 2014-09-08 | 3 | -286/+382 |
| | |||||
* | Only pass nano seconds to al_nssleep | Chris Robinson | 2014-09-08 | 4 | -5/+5 |
| | |||||
* | Use a standard pointer-sized integer type | Chris Robinson | 2014-09-04 | 1 | -1/+1 |
| | |||||
* | Make the fontsound's buffer and link fields atomic | Chris Robinson | 2014-09-03 | 1 | -2/+4 |
| | |||||
* | Fix Neon mixer definition | Chris Robinson | 2014-08-31 | 1 | -2/+2 |
| | |||||
* | Use al_calloc/al_free to allocate contexts and voices | Chris Robinson | 2014-08-30 | 1 | -6/+6 |
| | |||||
* | Setup the HRTF format before tracing the pre-reset format | Chris Robinson | 2014-08-29 | 1 | -17/+17 |
| | |||||
* | Check mmdevapi device ids to match the default device | Chris Robinson | 2014-08-28 | 1 | -19/+36 |
| | | | | | Seems Windows can return different IMMDevice object pointers for the same endpoint. | ||||
* | Return the correct default capture device name | Chris Robinson | 2014-08-26 | 1 | -1/+1 |
| | |||||
* | Check the given CoreAudio capture device name | Chris Robinson | 2014-08-26 | 1 | -0/+5 |
| | |||||
* | Remove a couple unnecessary typedefs | Chris Robinson | 2014-08-24 | 1 | -2/+2 |
| | |||||
* | Convert the wave writer backend to the new API | Chris Robinson | 2014-08-24 | 3 | -112/+182 |
| | |||||
* | Rename activesource to voice | Chris Robinson | 2014-08-21 | 3 | -158/+157 |
| | |||||
* | Use an array of objects for active sources instead of pointers | Chris Robinson | 2014-08-21 | 2 | -18/+11 |
| | |||||
* | Use a NULL source for inactive activesources | Chris Robinson | 2014-08-21 | 3 | -16/+19 |
| | | | | Also only access the activesource's source field once per update. | ||||
* | Support brace-enclosed environment variable names | Chris Robinson | 2014-08-19 | 1 | -0/+9 |
| | | | | | | | This makes it possible to append alpha-numeric characters directly to an environment variable value, e.g. ${FOO}bar will use "FOO" as the variable name and keep the "bar" as-is, whereas $FOObar will take "FOObar" as the variable name. | ||||
* | Update COPYING to the latest ↵ | François Cami | 2014-08-18 | 34 | -68/+68 |
| | | | | 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 | -1/+1 |
| | |||||
* | Assume SSE is available if building with support and no run-time checking | Chris Robinson | 2014-08-11 | 1 | -0/+12 |
| | |||||
* | Try the __cpuid intrinsic if GCC's __get_cpuid isn't available | Chris Robinson | 2014-08-11 | 1 | -10/+42 |
| | |||||
* | Check for GCC's __get_cpuid before using it | Chris Robinson | 2014-08-11 | 1 | -2/+2 |
| | |||||
* | Simplify some vector size range checks | Chris Robinson | 2014-08-10 | 2 | -17/+19 |
| | |||||
* | Give NULL for null-vector iterators | Chris Robinson | 2014-08-10 | 2 | -3/+5 |
| | |||||
* | Pass pointer-to-vector types as char* instead of void* | Chris Robinson | 2014-08-10 | 2 | -17/+16 |
| | | | | | C aliasing rules only allow char* to alias an otherwise-incompatible type, rather than void*. | ||||
* | Use VECTOR_FIND_IF and VECTOR_FOR_EACH instead of manual loops | Chris Robinson | 2014-08-09 | 4 | -106/+57 |
| | |||||
* | Use the default input device for portaudio's default capture device | Chris Robinson | 2014-08-08 | 1 | -1/+4 |
| | |||||
* | Disable the autowah effect | Chris Robinson | 2014-08-06 | 1 | -0/+4 |
| | | | | | | | | 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. | ||||
* | Make the DYNLOAD LoadFSynth function non-inline | Chris Robinson | 2014-08-05 | 1 | -1/+1 |
| | |||||
* | Load fluidsynth dynamically when possible | Chris Robinson | 2014-08-05 | 1 | -2/+107 |
| | |||||
* | Use an ATOMIC_INIT macro instead of ATOMIC_LOAD_UNSAFE | Chris Robinson | 2014-08-03 | 1 | -9/+9 |
| | |||||
* | Use atomics for the device and context list heads | Chris Robinson | 2014-08-01 | 2 | -61/+98 |
| | |||||
* | Make the source's buffer queue head and current queue item atomic | Chris Robinson | 2014-07-31 | 2 | -16/+17 |
| | |||||
* | Rename ATOMIC_COMPARE_EXCHANGE to ATOMIC_COMPARE_EXCHANGE_STRONG | Chris Robinson | 2014-07-31 | 1 | -1/+1 |
| | |||||
* | Use pulseaudio's write callback to signal a mixer proc wakeup | Chris Robinson | 2014-07-26 | 1 | -3/+11 |
| | |||||
* | Explicitly pass the address of atomics and parameters that can be modified | Chris Robinson | 2014-07-26 | 2 | -22/+22 |
| | |||||
* | Support C11 atomics | Chris Robinson | 2014-07-23 | 1 | -1/+3 |
| | |||||
* | Use generic atomics in more places | Chris Robinson | 2014-07-22 | 2 | -25/+20 |
| |