aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/chorus.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove another duplicate functionChris Robinson2018-09-191-2/+2
|
* Add a specific function for truncating float-to-int conversionsChris Robinson2018-05-031-5/+5
|
* EFX: Align some arrays used in intrinsics (#180)Raulshc2018-03-241-1/+1
|
* Move the filter implementation to a separate directoryChris Robinson2018-03-221-1/+1
|
* Avoid AL prefix on internal effect state factory typesChris Robinson2018-02-281-16/+16
| | | | Also avoid using the generic V/V0 macros for them
* Construct error messages using parameterized valuesChris Robinson2018-01-251-23/+21
|
* Provide messages for the remaining AL errorsChris Robinson2018-01-241-41/+27
|
* Fix up some types for MSVCChris Robinson2018-01-111-1/+2
|
* Ensure NextPowerOf2 is being used correctlyChris Robinson2018-01-111-2/+2
|
* Avoid using macros to access anonymous structuresChris Robinson2018-01-111-2/+2
|
* Use one macro to handle both resample padding sizesChris Robinson2018-01-091-1/+1
|
* Combine the chorus and flanger processing functionsChris Robinson2018-01-091-16/+164
| | | | | | | Given that they're nearly identical, it should be relatively simple to use the same effect state to process either of them, similar to the reverbs. The big differences seem to be the delay range (much shorter with flanger) and the defaults.
* Ensure the chorus delay and depth leave enough padding for resamplingChris Robinson2018-01-071-7/+13
| | | | Also use cubic resampling for the modulated tap. Applies to flanger too.
* Don't offset the chorus/flanger delay and LFOChris Robinson2017-12-241-18/+11
| | | | | The delay being added to the scaled LFO will ensure a proper positive result regardless.
* Update the chorus and flanger state struct less oftenChris Robinson2017-12-191-4/+4
|
* Fade gains in the chorus and flanger outputChris Robinson2017-12-191-8/+10
|
* Use a single delay line for chorus feedback on a fixed tapChris Robinson2017-12-181-46/+59
| | | | | | The outputs themselves use a variale-delay tap, but using a separate fixed- delay tap on the feedback helps improve the perceived "wobble" with sustained notes. This also applies to the flanger effect.
* Apply chorus and flanger feedback on the tapped re-feedChris Robinson2017-12-171-3/+3
|
* Use the selected mixer for chorus and flanger outputChris Robinson2017-12-171-25/+11
|
* Use a separate LFO offset in the chorus effectChris Robinson2017-12-151-10/+19
| | | | | Given that the LFO range is not a power-of-two, it won't correctly wrap on overflow.
* Use linear interpolation for the chorus delay outputChris Robinson2017-12-151-37/+39
|
* Pass the context to the auxiliary effect update methodChris Robinson2017-09-211-5/+6
|
* Remove the fastf2u conversion functionChris Robinson2017-06-271-1/+1
|
* Calculate chorus and flanger mod delays separately from feedbackChris Robinson2017-06-071-67/+59
|
* Fix handling chorus and flanger LFO displacement offsetChris Robinson2017-05-261-1/+4
| | | | | The phase offset is modulo-wrapped rather than masked, so it's best to avoid negative offsets.
* Properly handle the chorus and flanger LFOsChris Robinson2017-05-261-12/+15
| | | | | The effects' specified delay is the average delay time, meaning the delay offset should move between -n and +n relative to the delay, where n <= delay.
* Change some ALuint parameters to ALsizeiChris Robinson2017-05-021-15/+15
|
* Remove CalcXYZCoeffs and inline CalcAngleCoeffsChris Robinson2017-02-231-2/+2
|
* Add a ref count to ALeffectStateChris Robinson2016-08-251-13/+24
| | | | | This is mostly just reorganizing the effects to call the Construct method which initializes the ref count.
* Avoid using realloc in a number of placesChris Robinson2016-05-211-4/+4
|
* Get rid of an unnecessary copy of ALeffectPropsChris Robinson2016-05-131-7/+7
|
* Provide (mostly) lockless updates for effect slotsChris Robinson2016-05-121-8/+9
| | | | | | | | | | | | | | | | | Similar to the listener, separate containers are provided atomically for the mixer thread to apply updates without needing to block, and a free-list is used to reuse container objects. A couple things to note. First, the lock is still used when the effect state's deviceUpdate method is called to prevent asynchronous calls to reset the device from interfering. This can be fixed by using the list lock in ALc.c instead. Secondly, old effect states aren't immediately deleted when the effect type changes (the actual type, not just its properties). This is because the mixer thread is intended to be real-time safe, and so can't be freeing anything. They are cleared away when updates reuse the container they were kept in, and they don't incur any extra processing cost, but there may be cases where the memory is kept around until the effect slot is deleted.
* Improve radius behavior with scaling of ambisonic coefficientsChris Robinson2016-04-241-2/+2
|
* More directly map coefficients for ambisonic mixing buffersChris Robinson2016-04-151-6/+2
| | | | | | Instead of looping over all the coefficients for each channel with multiplies, when we know only one will have a non-0 factor for ambisonic mixing buffers, just index the one with a non-0 factor.
* Avoid mixing all coefficients together when only some are usedChris Robinson2016-04-151-2/+6
|
* Organize the dry buffer properties into a structChris Robinson2016-03-091-2/+2
|
* Pass a pointer to the input samples array for effect processingChris Robinson2016-01-271-3/+3
|
* Separate calculating ambisonic coefficients from the panning gainsChris Robinson2016-01-251-5/+6
|
* Rename F_2PI to F_TAUChris Robinson2015-09-131-1/+1
|
* Do up to 256 samples at a time with multi-step loopsChris Robinson2014-12-181-2/+2
|
* Pas the output device channel count to ALeffectState::processChris Robinson2014-11-071-4/+4
|
* Use a separate macro for the max output channel countChris Robinson2014-11-071-2/+2
|
* Make ComputeAngleGains use ComputeDirectionalGainsChris Robinson2014-10-021-2/+4
|
* Update COPYING to the latest ↵François Cami2014-08-181-2/+2
| | | | https://www.gnu.org/licenses/old-licenses/lgpl-2.0.txt to fix the FSF' address Fix the FSF' address in the source
* Use an enum for the chorus and flanger waveformsChris Robinson2014-05-141-8/+27
|
* Use a void* for the effect state Delete method paramChris Robinson2014-03-211-5/+2
|
* Use one long buffer for the chorus and flanger delay linesChris Robinson2013-11-101-19/+13
|
* Rename lfo_coeff to lfo_scaleChris Robinson2013-11-081-8/+8
|
* Use integer modulo for chorus and flangerChris Robinson2013-11-081-29/+31
| | | | Also simplify LFO coefficient calculations.
* Only use the inner loop for the chorus/flanger template methodChris Robinson2013-11-081-56/+57
|