aboutsummaryrefslogtreecommitdiffstats
path: root/alc
Commit message (Collapse)AuthorAgeFilesLines
...
* Make sure sio_write and sio_read return valid valuesChris Robinson2022-11-071-5/+12
|
* Add preliminary support for 7.1.4 output modesChris Robinson2022-11-0314-5/+129
| | | | | | | | I don't know how different sound APIs handle 7.1.4 ("Atmos" or "Auro3D") output, but currently it simply specifies the additional channels with the height channel labels. This isn't likely how it works for a virtualized channel bed, for playing over other with-height configurations (7.1.2, 5.1.4, etc), but this should be an okay start.
* Add functions to start sources at a particular device timeChris Robinson2022-11-033-0/+13
| | | | | | | | This starts a source at a particular device clock time, rounded to the nearest sample (really, 4th sample for SIMD reasons), allowing to start a sound at a particular point in the output instead of the next update. Unlike using negative offsets, this is not affected by pitch/velocity.
* Add the ability to start a voice at a particular timeChris Robinson2022-11-031-1/+5
|
* Add missing headerChris Robinson2022-10-221-0/+1
|
* Add a warning when using the old UHJ filter optionChris Robinson2022-10-211-2/+8
|
* Rename some variables to be less ambiguousChris Robinson2022-10-211-2/+2
|
* Add separate filter options for UHJ encoding and decodingChris Robinson2022-10-212-8/+29
|
* Add an IIR filter option for UHJ encoding/decodingChris Robinson2022-10-212-3/+5
| | | | | | This uses the reversed-allpass trick to maintain linear phase. with a 256- sample look-ahead/delay to minimize distortion. This should better preserve low frequencies while maintaining a proper phase response.
* Avoid using a modulo in a loopChris Robinson2022-10-181-10/+42
|
* Remove unnecessary includes and forward declarationsChris Robinson2022-09-231-7/+0
|
* Remove an unnecessary includeChris Robinson2022-09-221-1/+0
|
* Use PulseAudio's threaded mainloop instead of a custom oneChris Robinson2022-09-221-141/+160
|
* Correctly check if a multi-channel decoder is setChris Robinson2022-09-161-1/+1
|
* Update the built-in quad and 7.1 decodersChris Robinson2022-09-161-26/+26
| | | | | Make them first- and second-order respectively. They don't have enough speakers to really be suitable for higher orders than that.
* Don't pack ambdec coefficientsChris Robinson2022-09-121-64/+22
| | | | | | | | | Tne coefficients are placed as for full 3D ACN handling. The ChanMask just indicates which have potentially useful values. This could be a bit more agressive and clear ChanMask bits for channels that don't contribute to output, so that a decoder the specifies height-related channel bits, but leaves their coefficients all 0, can be handled as 2D. I don't expect many ambdec files to be like that, though.
* Ensure coeff_scale is set for ambdec filesChris Robinson2022-09-111-0/+1
|
* Track if doing 2D mixing onlyChris Robinson2022-09-044-6/+15
| | | | And use it to select the proper HF scales
* Allow different HF scales for 2D mixing/outputChris Robinson2022-09-042-2/+2
| | | | | Not actually used yet, the device needs to track whether it's using 2D or 3D mixing.
* Use the difference in HF scale for upsampling ambisonicsChris Robinson2022-09-032-2/+2
|
* Revert "Don't apply the HF scaling for "upsampling" ambisonics"Chris Robinson2022-09-022-4/+42
| | | | This reverts commit bf3f63fb4c5faa45784d7433d68b7013e29ee2c1.
* Use an icosahedron for 3D second-orderChris Robinson2022-09-011-32/+33
|
* Don't apply the HF scaling for "upsampling" ambisonicsChris Robinson2022-08-312-42/+4
| | | | | | | | | | | | Not sure if this is best, but it fixes the issue of upsampling lower orders to higher orders multiple times (mixing lower order to higher order, cutting back to lower order by dropping the extra channels, then upsampling again, applying the HF scale multiple times and messing up the high frequencies/energy vector), as well as having too-strong high frequencies of upsampled content in general. As it is, with the new upsampling method, the lower order signal contributes to some higher order channels, which helps offset the high frequency scaling difference (except first- to second-order, which adds nothing).
* Use a more precise 3D7.1 decoderChris Robinson2022-08-301-12/+12
|
* Do a simplified update for reverb when not fadingChris Robinson2022-08-291-49/+48
|
* Always fade the main early and late delay tapsChris Robinson2022-08-291-8/+33
| | | | | | | | | These were actually missing from the current check for fading. But the EFX documentation suggests these (along with the early/late gain and panning) can be adjusted often without invoking a full change, as dynamically modeling an environment would continually change these properties as the listener moves around (changing the direction and distance to the reflective surfaces). So ensuring they're kept up-to-date would be the way to go.
* Update reverb processingChris Robinson2022-08-291-285/+290
| | | | | | | | | | | | | Separate the core delay line into early and late input delay lines. This will be necessary to allow a second late reverb processing loop to decay after a change. Also ensure the early reflection delay line is long enough to write in MAX_UPDATE_SAMPLES first without interfering with the subsequent read. And ensure the modulation delay doesn't cause an underflow on the feedback offset. Finally, move the loop inside the processing functions to minimize loop iterations.
* Allow the remix tables to be variable lengthChris Robinson2022-08-281-9/+9
|
* Upsample the reverb output as neededChris Robinson2022-08-271-35/+94
|
* Add a 2D fourth-order upsamplerChris Robinson2022-08-271-0/+3
| | | | This will be necessary for 2D fourth-order sources with 3D fourth-order output.
* Don't mark a non-constexpr-able function as constexprChris Robinson2022-08-261-1/+1
| | | | | It can't be constexpr because it needs write access to an std::array, and because of std::sqrt.
* Simplify calculating the ambisonic rotator coefficientsChris Robinson2022-08-261-34/+33
|
* Fix W input mixing when non-0 coverageChris Robinson2022-08-261-15/+25
| | | | | | When upsampling certain ambisonic formats, the W channel may contribute to other output channels even with full coverage. Make sure they're taken into account.
* Create and use 2D upsampling matricesChris Robinson2022-08-253-9/+29
|
* Apply the upsampler before rotationChris Robinson2022-08-251-84/+23
| | | | | | | | Although this will necessitate applying a full device-order rotation for all ambisonic sources, it should be slightly better since it's effectively rotated after being mixed to higher order. This will also allow using more optimized upsamplers for 2D ambisonic sources vs 3D (while still allowing the sources to be rotated in 3D).
* Skip LFE for aux send gains with Direct ChannelsChris Robinson2022-08-181-0/+4
|
* Fix the channel spread for aux send gains with full HRTFChris Robinson2022-08-181-1/+1
|
* Inline and precompute some CalcDirectionCoeffs callsChris Robinson2022-08-186-8/+8
|
* Fix the ringbuffer write sizeChris Robinson2022-08-181-1/+1
|
* Use an intermediate buffer for writing to the ringbufferChris Robinson2022-08-181-26/+11
| | | | | It doesn't seem as though AudioUnitRender likes being given two buffers to render/capture samples into segmented memory.
* Pass the action flags to AudioUnitRender from the callbackChris Robinson2022-08-171-3/+2
|
* Inline a function and remove an unnecessary parameterChris Robinson2022-08-162-2/+2
|
* Pass the bus number to AudioUnitRender from the callbackChris Robinson2022-08-161-2/+2
|
* Use proper array sizes for more gainsChris Robinson2022-08-1512-22/+26
|
* Use amplitude-matching HF scaling for non-FOA HRTF outputChris Robinson2022-08-151-4/+4
|
* Update in incorrect commentChris Robinson2022-08-151-1/+1
|
* Use a decode-encode method for ambisonic upsamplingChris Robinson2022-08-151-6/+107
| | | | | | | | This should allow for clearer and less diffuse responses. While a cube is in the blindspots for second-order, resulting in an identify transform for first- to-second-order, they do start contributing to third-order channels, which should make for sharper virtual points. The fixed HF scales should also play nicer with larger order upmixes.
* Update some arrays in preparation for fourth order supportChris Robinson2022-08-141-1/+3
|
* Rename the UHJ filter config optionChris Robinson2022-08-091-2/+2
|
* Add an option for higher quality UHJ filtersChris Robinson2022-08-082-15/+30
|