Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Pas the output device channel count to ALeffectState::process | Chris Robinson | 2014-11-07 | 14 | -52/+53 |
| | |||||
* | Rename speakers to channels, and remove an old incorrect comment | Chris Robinson | 2014-11-07 | 4 | -29/+27 |
| | |||||
* | Use a separate macro for the max output channel count | Chris Robinson | 2014-11-07 | 16 | -59/+58 |
| | |||||
* | Use shorter display names for the surround sound config options | Chris Robinson | 2014-11-07 | 1 | -3/+3 |
| | |||||
* | Fix 5.1 surround sound | Chris Robinson | 2014-11-07 | 11 | -110/+124 |
| | | | | | | | | | | | | | Apparently, 5.1 surround sound is supposed to use the "side" channels, not the back channels, and we've been wrong this whole time. That means the "5.1 Side" is actually the correct 5.1 setup, and using the back channels is anomalous. Additionally, this means the 5.1 buffer format should also use the the side channels instead of the back channels. A final note: the 5.1 mixing coefficients are changed so both use the original 5.1 surround sound set (with the surround channels at +/-110 degrees). So the only difference now between 5.1 "side" and 5.1 "back" is the channel labels. | ||||
* | Update cross-compiler toolchain to work better with Qt | Chris Robinson | 2014-11-06 | 1 | -5/+12 |
| | |||||
* | Initialize a couple variables mingw complains about | Chris Robinson | 2014-11-06 | 1 | -2/+2 |
| | |||||
* | Use SZFMT for printing size_t | Chris Robinson | 2014-11-06 | 1 | -4/+4 |
| | |||||
* | Play zero-distance/zero-radius sources from the front | Chris Robinson | 2014-11-05 | 1 | -4/+4 |
| | |||||
* | Don't use FrontLeft and FrontRight to reference the dry buffer | Chris Robinson | 2014-11-05 | 1 | -4/+4 |
| | |||||
* | Don't increment the output buffer in the Write_ methods | Chris Robinson | 2014-11-05 | 1 | -13/+17 |
| | |||||
* | Support 5.1 and 7.1 in alffplay | Chris Robinson | 2014-11-05 | 1 | -5/+57 |
| | |||||
* | Remove the channel name from ChannelConfig | Chris Robinson | 2014-11-05 | 2 | -47/+50 |
| | |||||
* | Fix panning of multi-channel sources | Chris Robinson | 2014-11-05 | 1 | -1/+1 |
| | |||||
* | Set gains using the device channel index | Chris Robinson | 2014-11-05 | 3 | -40/+45 |
| | |||||
* | Add LFE to the speaker arrays | Chris Robinson | 2014-11-04 | 1 | -8/+12 |
| | |||||
* | Use a method to set omni-directional channel gains | Chris Robinson | 2014-11-04 | 9 | -36/+33 |
| | |||||
* | Use COUNTOF to set the number of speakers | Chris Robinson | 2014-11-04 | 1 | -7/+7 |
| | |||||
* | Add some missing breaks | Chris Robinson | 2014-11-02 | 1 | -0/+2 |
| | |||||
* | Minor update for ambisonics coefficients | Chris Robinson | 2014-11-02 | 1 | -11/+11 |
| | | | | | Small tweaks to balance the left and right speakers, and change unreasonably small values to 0. | ||||
* | Use the copy resampler only when there's no sub-sample offset | Chris Robinson | 2014-11-02 | 1 | -7/+6 |
| | |||||
* | Avoid the ALCdevice_Lock/Unlock wrapper in some places | Chris Robinson | 2014-11-01 | 2 | -4/+6 |
| | |||||
* | Support AL_EXT_MULAW_BFORMAT | Chris Robinson | 2014-10-31 | 2 | -1/+5 |
| | |||||
* | Add AL_EXT_MULAW_BFORMAT to alext.h | Chris Robinson | 2014-10-31 | 1 | -0/+6 |
| | |||||
* | Support B-Format source rotation with AL_ORIENTATION | Chris Robinson | 2014-10-31 | 5 | -14/+151 |
| | |||||
* | Rename the source's Orientation to Direction | Chris Robinson | 2014-10-31 | 3 | -13/+13 |
| | |||||
* | Add preliminary AL_EXT_BFORMAT support | Chris Robinson | 2014-10-31 | 8 | -40/+148 |
| | | | | | Currently missing the AL_ORIENTATION source property. Gain stepping also does not work. | ||||
* | Check the absolute gain value for silence | Chris Robinson | 2014-10-31 | 3 | -3/+3 |
| | | | | | Future B-Format support will be using negative gains, which still need to be applied. | ||||
* | Use %zu (C99) for printing size_t | Chris Robinson | 2014-10-30 | 1 | -4/+4 |
| | |||||
* | Minor clarification for __ALSOFT_SUSPEND_CONTEXT | Chris Robinson | 2014-10-13 | 1 | -2/+2 |
| | |||||
* | Use the minimum of the two string lengths for comparison | Chris Robinson | 2014-10-13 | 1 | -1/+1 |
| | |||||
* | Use more appropriate size types | Chris Robinson | 2014-10-13 | 2 | -8/+8 |
| | |||||
* | 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. | ||||
* | Make alcSuspendContext and alcProcessContext batch updates | Chris Robinson | 2014-10-12 | 4 | -76/+150 |
| | | | | | | | | | | This behavior better matches Creative's hardware drivers and Rapture3D's OpenAL driver. A compatibility environment variable is provided to restore the old no-op behavior for any app that behaves badly from this change (set __ALSOFT_SUSPEND_CONTEXT to "ignore"). If too many apps have a problem with this, the default behavior may need to be changed to ignore, with the env var providing an option to defer/batch instead. | ||||
* | Avoid taking the square-root of the ambient gain | Chris Robinson | 2014-10-11 | 7 | -61/+30 |
| | | | | | | 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. | ||||
* | Fix stereo device configuration | Chris Robinson | 2014-10-11 | 1 | -2/+2 |
| | |||||
* | Add a helper to search for a channel index by name | Chris Robinson | 2014-10-02 | 4 | -21/+30 |
| | |||||
* | Store default speaker configurations in a struct | Chris Robinson | 2014-10-02 | 2 | -194/+83 |
| | |||||
* | Make ComputeAngleGains use ComputeDirectionalGains | Chris Robinson | 2014-10-02 | 9 | -296/+182 |
| | |||||
* | Don't use ComputeAngleGains for SetGains | Chris Robinson | 2014-10-02 | 1 | -1/+5 |
| | |||||
* | 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 | 4 | -130/+134 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/ | ||||
* | Use better GUI item names for the resampler option | Chris Robinson | 2014-09-26 | 2 | -35/+31 |
| | |||||
* | Show prettier names in the alsoft-config sample format combo boxes | Chris Robinson | 2014-09-13 | 2 | -96/+80 |
| | |||||
* | Combine some fields into a struct | Chris Robinson | 2014-09-10 | 9 | -135/+133 |
| | |||||
* | Invert the ChannelOffsets array | Chris Robinson | 2014-09-10 | 3 | -56/+60 |
| |