Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move GetChannelIdxByName and clean up some more includes | Chris Robinson | 2021-04-26 | 1 | -0/+16 |
| | |||||
* | Move bformatdec to core | Chris Robinson | 2021-04-25 | 3 | -0/+370 |
| | |||||
* | Move async_event.h to core | Chris Robinson | 2021-04-25 | 1 | -0/+55 |
| | |||||
* | Move some functions to core | Chris Robinson | 2021-04-25 | 2 | -0/+227 |
| | | | | And clean up more includes | ||||
* | Move GetHFOrderScales to a more appropriate place | Chris Robinson | 2021-04-24 | 2 | -0/+48 |
| | |||||
* | Update some more includes | Chris Robinson | 2021-04-24 | 2 | -3/+2 |
| | |||||
* | Move the DeviceBase declaraction to core | Chris Robinson | 2021-04-24 | 2 | -0/+281 |
| | |||||
* | Move some more sources to core | Chris Robinson | 2021-04-24 | 3 | -0/+467 |
| | |||||
* | Move hrtf.cpp/h to core | Chris Robinson | 2021-04-22 | 2 | -0/+1538 |
| | |||||
* | Avoid over-long lines | Chris Robinson | 2021-04-22 | 1 | -2/+5 |
| | |||||
* | Move helpers.cpp to core | Chris Robinson | 2021-04-22 | 2 | -0/+528 |
| | |||||
* | Optionally use RTKit/D-Bus to set elevated priority | Chris Robinson | 2021-04-18 | 4 | -0/+441 |
| | | | | If pthread_setschedparam fails or is unavailable. | ||||
* | Don't reference non-static local variables in lambdas | Chris Robinson | 2021-04-11 | 1 | -2/+2 |
| | | | | GCC and Clang seem to allow it for local constexpr variables, but MSVC doesn't. | ||||
* | Update a comment | Chris Robinson | 2021-04-11 | 1 | -1/+1 |
| | |||||
* | Fix UHJ encoding/decoding factors | Chris Robinson | 2021-04-11 | 2 | -16/+34 |
| | | | | | | | | | | | 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. | ||||
* | Add RESTRICT to some pointers | Chris Robinson | 2021-04-04 | 1 | -11/+9 |
| | | | | And update some comments | ||||
* | Rename Uhj2Encoder to UhjEncoder | Chris Robinson | 2021-04-01 | 2 | -5/+5 |
| | |||||
* | Avoid passing an array of pointers | Chris Robinson | 2021-04-01 | 2 | -26/+30 |
| | |||||
* | Add support for 4-channel UHJ | Chris Robinson | 2021-03-31 | 2 | -8/+12 |
| | | | | Also add the SOFT moniker to the new macros | ||||
* | Decode UHJ buffers to B-Format for mixing | Chris Robinson | 2021-03-31 | 4 | -6/+100 |
| | | | | | This should also have an adjustment for the shelf filter. Although it's not clear what the appropriate adjustments should be. | ||||
* | Rename a couple class members | Chris Robinson | 2021-03-28 | 2 | -12/+12 |
| | |||||
* | Remove some unnecessary includes | Chris Robinson | 2021-03-28 | 1 | -6/+0 |
| | |||||
* | Move the UHJ phase shifter to a common header | Chris Robinson | 2021-03-28 | 2 | -203/+14 |
| | |||||
* | Update the UHJ decoding coefficients | Chris Robinson | 2021-03-24 | 1 | -2/+5 |
| | |||||
* | Fix the UHJ all-pass delay | Chris Robinson | 2021-03-20 | 2 | -11/+8 |
| | | | | | | | | | For real this time. The non-all-passed signal needs a one-sample delay over the all-passed signal. Because of the way the all-pass FIR filter is structured, it wouldn't otherwise use the last buffered sample, allowing it to be shifted forward in time by one sample. Also, remove a couple unnecessary buffers. | ||||
* | Fix UHJ FIR filter alignment | Chris Robinson | 2021-03-15 | 1 | -1/+1 |
| | |||||
* | Workaround mingw complaining about the %z formatter | Chris Robinson | 2021-03-12 | 1 | -1/+6 |
| | |||||
* | Avoid making BSincPointsMax public | Chris Robinson | 2021-03-01 | 2 | -18/+30 |
| | |||||
* | Avoid cutting off the last bsinc filter coefficient | Chris Robinson | 2021-03-01 | 1 | -3/+3 |
| | |||||
* | Avoiding cutting all bsinc resampler output at scale 0 | Chris Robinson | 2021-02-24 | 1 | -7/+6 |
| | | | | | | | | | | | | This is mostly for the SampleConverter, used by some capture backends. When recording at really low rates, like 5512hz, with a device capturing at a higher rate like 44100hz or 48000hz, it hits the filter's downscaling limit and produces pure silence. In such cases, it's better to just accept some aliasing noise so that the app will still get some recognizable audio. The alternative would be to scale the desired rate by 2x, 3x, etc until it's above the bsinc limit, then take every 2nd, 3rd, etc sample of the result as if by an extra simpler resampler pass. | ||||
* | Use a more appropriate epsilon for Sinc() | Chris Robinson | 2021-02-24 | 1 | -1/+2 |
| | |||||
* | Avoid an unnecessary loop iteration | Chris Robinson | 2021-02-23 | 1 | -2/+3 |
| | |||||
* | Adjust the bsinc filter table packing | Chris Robinson | 2021-02-23 | 4 | -41/+29 |
| | | | | | | | | Now each scale's filter and phase delta are interleaved for each phase index, followed by the scale and scale+phase delta for each phase index. This ensures no holes in the filter coefficients for the fast bsinc resampler for a given run, while keeping the scale deltas in the same vicinity for the non-fast bsinc resampler. | ||||
* | Remove unnecessary use of SSE2 intrinsics | Chris Robinson | 2021-02-21 | 1 | -2/+1 |
| | | | | | The compiler is producing the same results either way, since the upper bit results are never used. | ||||
* | Store the all-pass FIR results more efficiently | Chris Robinson | 2021-02-18 | 1 | -14/+23 |
| | |||||
* | Use shifts instead of shuffles with SSE where possible | Chris Robinson | 2021-02-18 | 1 | -4/+4 |
| | |||||
* | Add some optimization hints | Chris Robinson | 2021-02-16 | 3 | -18/+24 |
| | |||||
* | Add the all-pass filter results to the output with NEON | Chris Robinson | 2021-02-08 | 1 | -3/+3 |
| | |||||
* | Use spans instead of references to arrays | Chris Robinson | 2021-02-06 | 9 | -16/+22 |
| | |||||
* | Avoid global constexpr arrays | Chris Robinson | 2021-01-21 | 2 | -95/+116 |
| | |||||
* | Avoid dereferencing the end iterator | Chris Robinson | 2021-01-08 | 1 | -4/+4 |
| | |||||
* | Return non-const from the resampler function | Chris Robinson | 2021-01-02 | 6 | -37/+36 |
| | |||||
* | Make FPUCtl methods noexcept | Chris Robinson | 2020-12-31 | 2 | -12/+10 |
| | |||||
* | Move cpu_caps and fpu_ctrl to core | Chris Robinson | 2020-12-31 | 4 | -0/+247 |
| | |||||
* | Add NEON-enhanced FIR loops for convolution and UHJ | Chris Robinson | 2020-12-31 | 1 | -0/+68 |
| | |||||
* | Use smaller types for enums | Chris Robinson | 2020-12-27 | 1 | -1/+1 |
| | |||||
* | Use more constexpr variables instead of macros | Chris Robinson | 2020-12-25 | 5 | -30/+31 |
| | |||||
* | Increase direct HRTF delay to 256 | Chris Robinson | 2020-12-25 | 1 | -1/+1 |
| | | | | This should improve the error from the all-pass on the partial input. | ||||
* | Return an optional for an error | Chris Robinson | 2020-12-25 | 2 | -192/+81 |
| | |||||
* | Avoid dynamic vectors in AmbDecConf | Chris Robinson | 2020-12-25 | 2 | -19/+75 |
| | | | | Also add a bit more sanity checking |