aboutsummaryrefslogtreecommitdiffstats
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* Use a vector of arrays for a multi-dimensional arrayChris Robinson2023-01-234-12/+16
|
* Use a span instead of pointer+countChris Robinson2023-01-234-17/+19
|
* Remove a redundant struct memberChris Robinson2023-01-234-37/+34
|
* Remove some unused membersChris Robinson2023-01-232-4/+0
|
* Fix closing parenthesisChris Robinson2023-01-151-1/+1
|
* clang-tidy cleanups (#800)Rosen Penev2023-01-153-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * clang-tidy: use bool literals Found with modernize-use-bool-literals Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: replace std::bind with lambdas Found with modernize-avoid-bind Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: use data() instead of pointer stuff Found with readability-container-data-pointe Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: use empty() Found with readability-container-size-empty Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: remove static in anon namespace Found with readability-static-definition-in-anonymous-namespace Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: remove const return Found with readability-const-return-type Signed-off-by: Rosen Penev <[email protected]> Signed-off-by: Rosen Penev <[email protected]>
* Remove the FFT'd resampler from makemhrChris Robinson2023-01-111-93/+0
| | | | | Both SOFA and non-SOFA inputs use the polyphase resampler as needed when loading the IRs.
* Update alsoft-config with the new settingsChris Robinson2023-01-092-7/+38
|
* Update alsoft-configChris Robinson2023-01-082-72/+7
|
* Display the device sample rate in openal-infoChris Robinson2022-12-311-1/+7
|
* Avoid extraneous temporaries when filling vectorsChris Robinson2022-12-152-0/+5
|
* Better handle span sources from iteratorsChris Robinson2022-12-141-2/+2
|
* Avoid manually specifying FFT template parametersChris Robinson2022-12-141-2/+2
|
* Use the existing common FFT functions in makemhrChris Robinson2022-11-272-84/+16
|
* Update alsoft-config for new optionsChris Robinson2022-11-172-51/+89
|
* Support different input channel orders in uhjencoderChris Robinson2022-11-041-12/+39
|
* Use the correct input for the IIR UHJ encoderChris Robinson2022-10-261-2/+2
| | | | Also better detail the IIR implementation.
* Avoid nesting lambdasChris Robinson2022-10-241-42/+27
|
* Avoid a duplicate all-pass function that accumulatesChris Robinson2022-10-221-33/+30
|
* Don't pass null to fprintfChris Robinson2022-10-101-2/+2
|
* Handle the delays specified in SOFA filesChris Robinson2022-10-101-44/+55
|
* Resample before frequency analysisChris Robinson2022-05-135-38/+92
| | | | | | | | | | We want to resample before minimum phase reconstruction since that changes the phase relationship of the sampled signal, introducing a slight bit of noise from truncated sampling. It's not clear that the frequency domain resampling method is accurate, so resampling prior to frequency analysis is an alternative to ensure the resulting frequencies are given the proper phase for sampling. This also cleans up some micro allocations in loops.
* Handle 3D7.1 as a separate channel configurationChris Robinson2022-04-263-35/+80
| | | | | | | It's treated as 5.1 + 2 aux channels. This allows AL_DIRECT_CHANNELS_SOFT to behave better, not forwarding rear left/right channel inputs to lower front and upper rear, and allows reporting a more appropriate output mode to the app instead of 7.1.
* Update a tooltip to match current behaviorChris Robinson2022-04-261-3/+1
|
* Add an option to alsoft-config for EAX API supportChris Robinson2022-04-262-1/+29
|
* Print the output mode from openal-infoChris Robinson2022-04-171-0/+29
|
* Fix the UHJ decoder parameters in uhjdecoderChris Robinson2022-03-021-5/+5
|
* Use a more compatible method to check for EFX effectsChris Robinson2022-02-261-41/+68
| | | | | | Creative's wrapper driver doesn't seem to handle EFX enums for alGetEnumValue, let alone return values only for what's supported. The only way to check which filter and effect types it supports is try to set them and check for errors.
* Add options to encode 3- and 4-channel UHJ to uhjencoderChris Robinson2022-02-041-19/+71
| | | | | | | The generated files won't play correctly if the player doesn't know they're 3- and 4-channel UHJ (the third and fourth channels must be ignored, or decoded, for playback). This is largely just for completion's sake, just in case someone has a use for it.
* Rename Sqrt1_2 for consistencyChris Robinson2022-02-011-2/+2
|
* Remove math_defs.hChris Robinson2022-01-271-47/+48
|
* Get rid of MathDefsChris Robinson2022-01-271-1/+2
|
* Add an ambi-format option for ACN ordering and FuMa scalingChris Robinson2022-01-121-1/+2
|
* Use the deprecated enum for older Qt versionsChris Robinson2022-01-061-0/+4
|
* Avoid a deprecated QString enumChris Robinson2022-01-051-1/+1
|
* Add a third-order ambisonic decoder for HRTFChris Robinson2022-01-051-5/+4
| | | | | Using the 20-channel dodecahedron, seems to be good enough to handle 16-channel third-order ambisonics.
* Add the PipeWire config option to alsoft-configChris Robinson2021-12-252-0/+33
|
* Slight update to the UHJ coefficientsChris Robinson2021-11-282-34/+34
| | | | | | | The extended precision of the encoder's 0.6512*X term was guesswork, with no real basis for it. Switch back to the original value until something better actually comes up. Also updates the decoder to account for the change in the encoder.
* Recognize PipeWire in alsoft-configChris Robinson2021-11-261-0/+3
|
* Slightly improve logging on WindowsChris Robinson2021-11-211-64/+5
| | | | | The characters won't display properly if the system codepage isn't UTF-8, but at least it shouldn't cut the line off prematurely.
* Update alsoft-configChris Robinson2021-11-112-17/+49
|
* Remove some lingering mentions of surround51rearChris Robinson2021-10-211-2/+3
|
* Use a higher quality all-pass for the UHJ utilsChris Robinson2021-07-302-8/+17
|
* Add a utility to encode audio files to UHJChris Robinson2021-07-091-0/+454
|
* Fix UHJ encoding/decoding factorsChris Robinson2021-04-111-1/+3
| | | | | | | | | | | Classic B-Format uses scaling factors W=1, X=sqrt(2), Y=sqrt(2), and Z=sqrt(2), which is +3dB louder than FuMa. The base factors are designed assuming classic scaling, so encoding a 0dBFS FuMa signal without accounting for this would result in the UHJ signal peaking at about -3dBFS. Similarly, decoding UHJ to FuMa B-Format would be +3dB louder than intended. So encoding needs to implicitly boost the signal by +3dB, and decoding needs to attenuate by -3dB.
* Remove some unnecessary includesChris Robinson2021-03-281-6/+0
|
* Move the UHJ phase shifter to a common headerChris Robinson2021-03-281-196/+31
|
* Add an option to change the UHJ decoder methodChris Robinson2021-03-261-27/+50
| | | | | | | | | | | | For 2-channel UHJ, two decoding equations are provided in the original paper. The alternative one is most often referenced for 2-channel UHJ decoding, but the original/general one can also be used by assuming T is fully attenuated (which the format allows for, as T can be variably attenuated by a factor between 0 and 1 to deal with an imperfect transmission medium). Neither method can be perfect for 2-channel UHJ, it's irrevocably lossy to the original source, but my subjective testing indicates the general equation produces less audibly errant results.
* Fix a comment typoChris Robinson2021-03-241-2/+2
|
* Update the UHJ decoding coefficientsChris Robinson2021-03-241-60/+66
|