aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
Commit message (Collapse)AuthorAgeFilesLines
* Use a step counter for gain steppingChris Robinson2018-05-144-76/+100
| | | | | This should provide more stable stepping, preventing floating-point errors from accumulating on each step/sample.
* Add a faster double-to-int converter for x87 buildsChris Robinson2018-05-141-1/+25
|
* Use more accurate elevations for virtual HRTF speaker positionsChris Robinson2018-05-141-8/+8
|
* Use fastf2i instead of manually rounding with float2intChris Robinson2018-05-121-4/+4
|
* Add and use a method for fast float roundingChris Robinson2018-05-122-1/+2
| | | | | Unlike fastf2i, this keeps the result as a float instead of converting to integer.
* Simplify calculating the HRTF B-Format IR lengthChris Robinson2018-05-041-19/+19
|
* Don't assume the FPU is round-to-zero in the pitch shifterChris Robinson2018-05-041-21/+3
|
* Don't assume round-to-zero for fastf2iChris Robinson2018-05-043-58/+18
|
* Add a specific function for truncating float-to-int conversionsChris Robinson2018-05-037-40/+33
|
* Avoid fastf2i in the converter initChris Robinson2018-05-031-1/+2
|
* Use a fixed-point scale for the pitch shifter frequency indexChris Robinson2018-05-031-5/+10
|
* Avoid excessive if block depthsChris Robinson2018-05-021-12/+6
|
* Avoid duplication for getting the cpuidChris Robinson2018-05-021-55/+24
|
* Pass in the number of channels per order to InitNearFieldCtrlChris Robinson2018-05-011-26/+14
|
* An output device buffer is likelyChris Robinson2018-04-291-1/+1
|
* Avoid potentially calling log10f(0)Chris Robinson2018-04-291-1/+1
|
* Rename some struct members for clarityChris Robinson2018-04-282-77/+77
|
* Fix a comment about a float's mantissaChris Robinson2018-04-281-3/+4
|
* Remove some unnecessary floor callsChris Robinson2018-04-281-4/+2
|
* Increase the band-split IR for decoding ambisonics to HRTFChris Robinson2018-04-271-8/+16
|
* Rename some variables for clarityChris Robinson2018-04-271-31/+29
|
* Transpose the band-splitter all-pass sectionChris Robinson2018-04-261-9/+11
|
* Use doubles for the pitch shifter's FFTs and processingChris Robinson2018-04-241-43/+68
|
* Don't specialize biquad processing for a single sampleChris Robinson2018-04-241-37/+28
|
* Use transposed direct form 2 for the UHJ all-pass filtersChris Robinson2018-04-222-17/+17
| | | | | This has one extra multiply, but avoids two moves and uses almost half as much memory for the encoder state.
* Pre-calculate the squares of the UHJ filter coefficientsChris Robinson2018-04-221-53/+31
|
* Change some if checks to asserts since they must be trueChris Robinson2018-04-221-14/+12
|
* Move the bnad-splitter filters to a separate sourceChris Robinson2018-04-217-136/+151
|
* Add some more ASSUME statementsChris Robinson2018-04-214-0/+7
|
* Adjust the stereo panning front gainChris Robinson2018-04-191-2/+2
| | | | This gives it a (more) precise -4.5dB gain drop for front-center panned sounds.
* Remove unnecessary undefsChris Robinson2018-04-193-3/+0
|
* Clear ALSA's PCM handle after closing itChris Robinson2018-04-191-0/+1
|
* Add some ASSUME statements that ensure mixing at least 1 sampleChris Robinson2018-04-186-0/+25
|
* Add an ASSUME macro that requires a true conditionChris Robinson2018-04-173-0/+6
|
* Accumulate the B-Format HRTF responses using doublesChris Robinson2018-04-171-9/+24
| | | | | The final result is still truncated to single-precision float, but this should keep the responses more stable as it accumulates the various inputs.
* Don't minimize the HRTF per-response delayChris Robinson2018-04-162-11/+7
| | | | | | The reverts both fa9ab9af7cb559ff9ecc1846f2996265bfbea1ec and 79604c3c0e0f3f71832a09348cc273a38882cc3e. As helpful as it was for the high frequencies, the overall response's gain suffered.
* Rename BiquadState to BiquadFilterChris Robinson2018-04-049-79/+78
|
* Apply biquad and T60 filters using transposed direct form IIChris Robinson2018-04-035-74/+62
|
* Initialize COM using the multithreaded apartmentChris Robinson2018-04-011-7/+7
| | | | | | | I honestly have no idea which is the correct (or better) mode to use given the confusing mess COM is, but CoInitialize uses single-threaded apartments which seems to be a problem for with at least a couple games in the STALKER series (the call fails, which causes us to drop back to the DSound backend).
* Limit the near-field control distance to 10m.Chris Robinson2018-03-311-2/+2
|
* Fix HRTF HOA coefficientsChris Robinson2018-03-311-21/+37
| | | | | | ACN8 was accidentally put on ACN7. However, rather than adding the missing channel of silence, set up the coefficient map to only use the ambisonic channels that can contribute to output.
* Apply the initial decay and air absorption after gain clampingChris Robinson2018-03-291-42/+42
|
* Pass the azimuth and elevation to CalcPanningAndFiltersChris Robinson2018-03-291-42/+32
|
* Combine two loopsChris Robinson2018-03-291-27/+25
|
* Check all buffers to update a source withChris Robinson2018-03-281-2/+5
|
* Store the ALbufferlistitem's composited/max sample lengthChris Robinson2018-03-271-26/+6
|
* Rename NfcFilterUpdate* to NfcFilterProcess* for consistencyChris Robinson2018-03-273-8/+8
|
* Condense an if checkChris Robinson2018-03-261-3/+2
|
* Clear mixing target parameters before setting themChris Robinson2018-03-251-70/+23
|
* Reduce the gain of front-panned sounds with plain stereoChris Robinson2018-03-251-2/+2
| | | | | | Now front-center sounds are attenuated by roughly -4.5dB instead of -3dB. This will help keep rear-panned sounds from attenuating too much while not making front-panned also attenuate too much.