aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alu.h
Commit message (Collapse)AuthorAgeFilesLines
* Use the bsinc resampler for the converterChris Robinson2017-06-251-0/+2
|
* Add a new compressor/limiterChris Robinson2017-05-271-22/+0
| | | | | | This is just for the output limiter right now, but in the future can be used for the compressor EFX effect. The parameters are also hardcoded, but can be made configurable after 1.18.
* Add an option to dither 8- and 16-bit outputChris Robinson2017-05-231-0/+3
|
* Reduce the amount of variables that hold the same valueChris Robinson2017-05-211-2/+2
|
* Use a macro to specify the decay target gainChris Robinson2017-05-211-0/+3
|
* Reduce LIMITER_VALUE_MAXChris Robinson2017-05-091-1/+1
| | | | | | The previous value couldn't actually be expressed as a float and got rounded up to the next whole number value, leaving the potential for an overrun in the squared sum.
* Store the output limiter values as fixed-point integersChris Robinson2017-05-081-2/+6
| | | | | This helps keep the squared sum stable over larger updates, also avoiding the need to keep recalculating it.
* Calculate the output limiter gain using the RMSChris Robinson2017-05-051-0/+18
|
* Rename RollOff to RolloffChris Robinson2017-05-051-1/+1
|
* Start an extension to change the source's spatialize propertyChris Robinson2017-05-051-3/+3
|
* Add a property to force source spatialization on or offChris Robinson2017-05-041-0/+7
|
* Add a mixing function to blend HRIRsChris Robinson2017-05-031-0/+5
| | | | | | This is a bit more efficient than calling the normal HRTF mixing function twice, and helps solve the problem of the values generated from convolution not being consistent with the new HRIR.
* Rename VOICE_IS_HRTF to VOICE_HAS_HRTFChris Robinson2017-05-021-1/+1
|
* Rename 'moving' flag to 'fading'Chris Robinson2017-05-021-2/+2
|
* Add a method to enumerate resamplersChris Robinson2017-04-211-0/+2
|
* Store the resampler as part of the sourceChris Robinson2017-04-211-14/+16
|
* Make the default resampler a variableChris Robinson2017-04-201-2/+1
|
* Store the source queue head in the voice to signify loopingChris Robinson2017-04-181-3/+8
| | | | | This removes the need to access a couple more source fields in the mixer, and also makes the looping and queue fields non-atomic.
* Store the source prop updates with the mixer voiceChris Robinson2017-04-171-2/+59
| | | | Also move its declaration and rename it for consistency.
* Use ALsizei for the fir4 resampler fractionChris Robinson2017-04-121-1/+1
|
* Add a sample converterChris Robinson2017-04-101-0/+10
| | | | | | | | | | This is intended to do conversions for interleaved samples, and supports changing from one DevFmtType to another as well as resampling. It does not handle remixing channels. The mixer is more optimized to use the resampling functions directly. However, this should prove useful for recording with certain backends that won't do the conversion themselves.
* Handle the source offset fraction as an ALsizeiChris Robinson2017-04-081-2/+2
|
* Pre-compute the sinc4 resampler coefficient tableChris Robinson2017-04-081-4/+3
|
* Store the HRIR coeff pointer and delays directly in MixHrtfParamsChris Robinson2017-03-121-1/+2
|
* Rework HRTF coefficient fadingChris Robinson2017-03-111-11/+8
| | | | | | | | | | | | | | | This improves fading between HRIRs as sources pan around. In particular, it improves the issue with individual coefficients having various rounding errors in the stepping values, as well as issues with interpolating delay values. It does this by doing two mixing passes for each source. First using the last coefficients that fade to silence, and then again using the new coefficients that fade from silence. When added together, it creates a linear fade from one to the other. Additionally, the gain is applied separately so the individual coefficients don't step with rounding errors. Although this does increase CPU cost since it's doing two mixes per source, each mix is a bit cheaper now since the stepping is simplified to a single gain value, and the overall quality is improved.
* Make the voice's 'moving' state a bitflagChris Robinson2017-03-111-5/+4
|
* Implement NFC filters for Ambisonic renderingChris Robinson2017-03-101-1/+8
| | | | | | | | | | | | | | NFC filters currently only work when rendering to ambisonic buffers, which includes HQ rendering and ambisonic output. There are two new config options: 'decoder/nfc' (default on) enables or disables use of NFC filters globally, and 'decoder/nfc-ref-delay' (default 0) specifies the reference delay parameter for NFC-HOA rendering with ambisonic output (a value of 0 disables NFC). Currently, NFC filters rely on having an appropriate value set for AL_METERS_PER_UNIT to get the correct scaling. HQ rendering uses the averaged speaker distances as a control/reference, and currently doesn't correct for individual speaker distances (if the speakers are all equidistant, this is fine, otherwise per-speaker correction should be done as well).
* Move ALvoice declaration to alu.hChris Robinson2017-03-091-1/+55
|
* Ensure a non-playing or -paused source does not use a mixing voiceChris Robinson2017-02-251-1/+1
|
* Remove CalcXYZCoeffs and inline CalcAngleCoeffsChris Robinson2017-02-231-13/+9
|
* Alter how panpot/pair-wise panning worksChris Robinson2017-02-231-0/+10
| | | | | | | | | | | | | | | | | | | This change allows pair-wise panning to mostly go through the normal ambisonic panning methods, with one special-case. First, a term is added to the stereo decoder matrix's X coefficient so that a centered sound is reduced by -3dB on each output channel. Panning in front creates a similar gain response to the typical L = sqrt(1-pan) R = sqrt(pan) for pan = [0,1]. Panning behind the listener can reduce (up to) an additional -10dB, creating a audible difference between front and back sounds as if simulating head obstruction. Secondly, as a special-case, the source positions are warped when calculating the ambisonic coefficients so that full left panning is reached at -30 degrees and full right at +30 degrees. This is to retain the expected 60-degree stereo width. This warping does not apply to B-Format buffer input, although it otherwise has the same gain responses.
* Remove the sinc8 resampler optionChris Robinson2017-02-191-12/+2
| | | | | Perf shows less than 1 percent CPU difference from the higher quality bsinc resampler, but uses almost twice as much memory (a 128KB lookup table).
* Put BsincState in a generic unionChris Robinson2017-02-131-1/+5
|
* Replace some ALvoid with voidChris Robinson2017-01-181-3/+3
|
* Use ALsizei in more placesChris Robinson2017-01-181-7/+7
|
* Pass the left and right buffers to the hrtf mixers directlyChris Robinson2017-01-171-5/+5
|
* Use ALsizei and ALint for sizes and offsets with resamplers and filtersChris Robinson2017-01-161-1/+2
|
* Use ALsizei for sizes and offsets with the mixerChris Robinson2017-01-161-13/+13
| | | | | | Unsigned 32-bit offsets actually have some potential overhead on 64-bit targets for pointer/array accesses due to rules on integer wrapping. No idea how much impact it has in practice, but it's nice to be correct about it.
* Add some more 'restrict' keywordsChris Robinson2016-10-061-1/+1
|
* Remove an unused structChris Robinson2016-10-051-6/+0
|
* Pass current and target gains directly for mixingChris Robinson2016-10-051-2/+3
|
* Make some pointer-to-array parameters constChris Robinson2016-10-041-2/+3
|
* Mark a global variable declaration as externChris Robinson2016-09-111-1/+1
|
* Make the SelectMixer function sharableChris Robinson2016-09-061-0/+2
|
* Use a predefined identity matrixChris Robinson2016-09-051-0/+1
|
* Rename MatrixMixerFunc to RowMixerFuncChris Robinson2016-09-021-3/+3
|
* Clamp the maximum mixing gain boost to 16Chris Robinson2016-08-271-0/+2
| | | | | | The combined source and listener gains now can't exceed a multiplier of 16 (~24dB). This is to avoid mixes getting out of control with large volume boosts, which reduces the effective precision given by floating-point.
* Use a more specialized mixer function for B-Format to HRTFChris Robinson2016-08-121-0/+4
|
* Move the input channel array out of the DirectParams and SendParamsChris Robinson2016-07-131-13/+9
|
* Store the voice output buffers separate from the paramsChris Robinson2016-07-111-6/+0
|