aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
Commit message (Collapse)AuthorAgeFilesLines
* Remove the channel name from ChannelConfigChris Robinson2014-11-051-46/+50
|
* Fix panning of multi-channel sourcesChris Robinson2014-11-051-1/+1
|
* Set gains using the device channel indexChris Robinson2014-11-053-40/+45
|
* Add LFE to the speaker arraysChris Robinson2014-11-041-8/+12
|
* Use a method to set omni-directional channel gainsChris Robinson2014-11-048-22/+26
|
* Use COUNTOF to set the number of speakersChris Robinson2014-11-041-7/+7
|
* Add some missing breaksChris Robinson2014-11-021-0/+2
|
* Minor update for ambisonics coefficientsChris Robinson2014-11-021-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 offsetChris Robinson2014-11-021-7/+6
|
* Avoid the ALCdevice_Lock/Unlock wrapper in some placesChris Robinson2014-11-011-2/+3
|
* Support AL_EXT_MULAW_BFORMATChris Robinson2014-10-311-1/+3
|
* Support B-Format source rotation with AL_ORIENTATIONChris Robinson2014-10-312-4/+47
|
* Rename the source's Orientation to DirectionChris Robinson2014-10-311-3/+3
|
* Add preliminary AL_EXT_BFORMAT supportChris Robinson2014-10-314-39/+106
| | | | | Currently missing the AL_ORIENTATION source property. Gain stepping also does not work.
* Check the absolute gain value for silenceChris Robinson2014-10-313-3/+3
| | | | | Future B-Format support will be using negative gains, which still need to be applied.
* Use %zu (C99) for printing size_tChris Robinson2014-10-301-4/+4
|
* Use the minimum of the two string lengths for comparisonChris Robinson2014-10-131-1/+1
|
* Use more appropriate size typesChris Robinson2014-10-132-8/+8
|
* Don't attempt to match a channel input to outputChris Robinson2014-10-121-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 updatesChris Robinson2014-10-121-4/+135
| | | | | | | | | | 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 gainChris Robinson2014-10-117-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 configurationChris Robinson2014-10-111-2/+2
|
* Add a helper to search for a channel index by nameChris Robinson2014-10-023-21/+13
|
* Store default speaker configurations in a structChris Robinson2014-10-021-183/+69
|
* Make ComputeAngleGains use ComputeDirectionalGainsChris Robinson2014-10-027-291/+176
|
* Use helpers to set the gain step valuesChris Robinson2014-10-021-142/+73
|
* Use VECTOR_FIND_IF instead of manual loopsChris Robinson2014-09-301-42/+38
|
* Add a cast for MSVCChris Robinson2014-09-301-1/+1
|
* Copy the null terminator from the string instead of appending itChris Robinson2014-09-301-4/+1
|
* Use size_t for the vector size and capacityChris Robinson2014-09-304-30/+23
|
* Use an ambisonics-based panning methodChris Robinson2014-09-302-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 structChris Robinson2014-09-108-132/+127
|
* Invert the ChannelOffsets arrayChris Robinson2014-09-102-55/+58
|
* Use a wave file channel mask based on the actual formatChris Robinson2014-09-101-14/+12
|
* Remove some unnecessary config optionsChris Robinson2014-09-081-18/+8
|
* Use a vector instead of a manual dynamic arrayChris Robinson2014-09-081-150/+90
|
* Don't modify a capture device's formatChris Robinson2014-09-081-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 BackendFuncsChris Robinson2014-09-088-43/+10
|
* Convert the winmm backend to the new backend APIChris Robinson2014-09-083-286/+382
|
* Only pass nano seconds to al_nssleepChris Robinson2014-09-084-5/+5
|
* Use a standard pointer-sized integer typeChris Robinson2014-09-041-1/+1
|
* Make the fontsound's buffer and link fields atomicChris Robinson2014-09-031-2/+4
|
* Fix Neon mixer definitionChris Robinson2014-08-311-2/+2
|
* Use al_calloc/al_free to allocate contexts and voicesChris Robinson2014-08-301-6/+6
|
* Setup the HRTF format before tracing the pre-reset formatChris Robinson2014-08-291-17/+17
|
* Check mmdevapi device ids to match the default deviceChris Robinson2014-08-281-19/+36
| | | | | Seems Windows can return different IMMDevice object pointers for the same endpoint.
* Return the correct default capture device nameChris Robinson2014-08-261-1/+1
|
* Check the given CoreAudio capture device nameChris Robinson2014-08-261-0/+5
|
* Remove a couple unnecessary typedefsChris Robinson2014-08-241-2/+2
|
* Convert the wave writer backend to the new APIChris Robinson2014-08-243-112/+182
|