aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/reverb.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Simplify effect state buffer handling someChris Robinson2023-04-041-2/+2
|
* Make a table constexprChris Robinson2023-02-071-6/+5
|
* Improve performance calculating reverb panningChris Robinson2023-02-051-10/+11
|
* Use a cubic resampler for the reverb modulator offsetChris Robinson2023-02-051-17/+61
|
* Rename some members for clarityChris Robinson2023-01-121-22/+22
|
* Avoid duplicate code to update the reverb delay linesChris Robinson2022-12-221-14/+7
|
* Include the reverb delay times in the fade sample countChris Robinson2022-12-201-24/+15
|
* Make sure to update the input filters with partial updatesChris Robinson2022-12-201-1/+11
|
* Clean up some reverb mixing loopsChris Robinson2022-12-191-21/+18
|
* Turn a static member function into a lambda where it's usedChris Robinson2022-12-191-31/+29
| | | | And clean up some parameters
* Remove a redundant commentChris Robinson2022-12-181-4/+1
|
* Use a size_t for the reverb decay fade countChris Robinson2022-12-181-2/+2
|
* Clear the old reverb pipeline buffer when it's doneChris Robinson2022-12-171-9/+46
|
* Rework reverb fading to toggle between pipelinesChris Robinson2022-12-171-475/+360
| | | | | | | | | | | | When non-simple properties are changed, the active reverb pipeline is switched and the new parameters set on that one. The main process function will then be set to fade out input on the old pipeline, fade in input on the new pipeline, then process and mix both pipelines. After some number of samples (calculated from its decay time), the old pipeline will stop processing. This should improve the transition from a highly reverberant environment by not harshly interpolating to the new environment, as well as better handle changes to the all-pass and T60 filters.
* Avoid using a macro to wrap standard attributesChris Robinson2022-12-061-1/+1
|
* Avoid some uses of the LIKELY/UNLIKELY macrosChris Robinson2022-12-051-1/+1
|
* Track if doing 2D mixing onlyChris Robinson2022-09-041-1/+1
| | | | And use it to select the proper HF scales
* Allow different HF scales for 2D mixing/outputChris Robinson2022-09-041-1/+1
| | | | | 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-031-1/+1
|
* Revert "Don't apply the HF scaling for "upsampling" ambisonics"Chris Robinson2022-09-021-4/+29
| | | | This reverts commit bf3f63fb4c5faa45784d7433d68b7013e29ee2c1.
* Don't apply the HF scaling for "upsampling" ambisonicsChris Robinson2022-08-311-29/+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).
* 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.
* Upsample the reverb output as neededChris Robinson2022-08-271-35/+94
|
* Create and use 2D upsampling matricesChris Robinson2022-08-251-1/+1
|
* Inline a function and remove an unnecessary parameterChris Robinson2022-08-161-1/+1
|
* Use proper array sizes for more gainsChris Robinson2022-08-151-4/+4
|
* Use a boolean check instead of a function pointerChris Robinson2022-05-241-7/+14
|
* Avoid dividing by a constantChris Robinson2022-05-241-4/+4
|
* Rename lerp to avoid conflicts with C++20's std::lerpChris Robinson2022-04-061-4/+4
|
* Rename Sqrt1_2 for consistencyChris Robinson2022-02-011-5/+5
|
* Get rid of MathDefsChris Robinson2022-01-271-9/+5
|
* Start and use a standard-like numbers headerChris Robinson2022-01-271-9/+8
|
* Use a different output matrix for late reverbChris Robinson2022-01-111-14/+22
| | | | | | | | | | This is a slightly reoriented tetrahedron, with responses on the front-left and front-right, along with upper-back and lower-back. This is a alternative matrix suggested for converting the A-Format late reverb lines back to B-Format. Also alter the matrix scaling to be less destructive. x0.5 is just reducing the floating-point exponent by 1, whereas the previous values would be more likely to introduce rounding errors just from scaling.
* Move the effects base and effectslot to coreChris Robinson2021-12-171-1/+1
|
* Update include headersChris Robinson2021-04-271-2/+2
| | | | Don't add alc/ to the include paths.
* Update includesChris Robinson2021-04-271-2/+1
|
* Move some functions to coreChris Robinson2021-04-251-33/+50
| | | | And clean up more includes
* Move GetHFOrderScales to a more appropriate placeChris Robinson2021-04-241-2/+2
|
* Create a base the ALCdevice and ALCcontext structsChris Robinson2021-04-241-5/+5
| | | | | A base that contains the API-agnostic data, with ALCdevice and ALCcontext being for AL-specific data.
* Store buffer info in the queue entryChris Robinson2021-01-241-2/+2
|
* Return an intrusive_ptr from EffectStateFactory::createChris Robinson2020-12-281-2/+4
|
* Combine EffectState::deviceUpdate with setBufferChris Robinson2020-12-261-2/+2
|
* Add a crossover frequency field for the deviceChris Robinson2020-12-261-1/+1
| | | | | | Used when upsampling low-order ambisonic signals to higher order. Rather than a hardcoded 400hz, it ensures a consistent crossover point when an ambdec configuration is used. It can also allow for an alsoft config option.
* Avoid AL types and enums in the effect processorsChris Robinson2020-12-241-8/+8
|
* Change some macros into constexpr variablesChris Robinson2020-12-041-3/+3
|
* Move the filters to coreChris Robinson2020-12-041-4/+3
|
* Change a couple macros into constexpr variablesChris Robinson2020-11-281-2/+2
|
* Move AL EffectProp handling to separate sourcesChris Robinson2020-11-251-543/+0
|