aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/equalizer.c
Commit message (Collapse)AuthorAgeFilesLines
* Reorder filter coefficientsChris Robinson2016-12-211-8/+8
|
* Call ALfilterState_processC directlyChris Robinson2016-09-121-4/+0
| | | | | | It's the only implementation currently, so there's no point to having it stored as a function pointer in the filter struct. Even if there were SIMD versions, it'd be a global selection, not per-instance.
* Use a predefined identity matrixChris Robinson2016-09-051-10/+2
|
* Add a ref count to ALeffectStateChris Robinson2016-08-251-15/+26
| | | | | This is mostly just reorganizing the effects to call the Construct method which initializes the ref count.
* Rename input_gain to b0Chris Robinson2016-07-261-4/+4
|
* Get rid of an unnecessary copy of ALeffectPropsChris Robinson2016-05-131-11/+11
|
* Provide (mostly) lockless updates for effect slotsChris Robinson2016-05-121-12/+17
| | | | | | | | | | | | | | | | | 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.
* More directly map coefficients for ambisonic mixing buffersChris Robinson2016-04-151-2/+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.
* Include any first-order scaling in the FOAOut coefficientsChris Robinson2016-03-251-4/+3
|
* Add a specific output for first-order sourcesChris Robinson2016-03-221-1/+4
|
* Organize the dry buffer properties into a structChris Robinson2016-03-091-2/+2
|
* Rename ComputeBFormatGains to ComputeFirstOrderGainsChris Robinson2016-01-311-2/+2
|
* Convert the equalizer effect to multichannelChris Robinson2016-01-291-33/+90
|
* Pass a pointer to the input samples array for effect processingChris Robinson2016-01-271-2/+2
|
* Separate calculating ambisonic coefficients from the panning gainsChris Robinson2016-01-251-2/+2
|
* Pass in the Q parameter for setting the filter parametersChris Robinson2015-11-011-13/+21
| | | | Also better handle the peaking filter gain.
* 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-3/+3
|
* Use a separate macro for the max output channel countChris Robinson2014-11-071-2/+2
|
* Use a method to set omni-directional channel gainsChris Robinson2014-11-041-2/+1
|
* Avoid taking the square-root of the ambient gainChris Robinson2014-10-111-1/+1
| | | | | | Although it is more correct for preserving the apparent volume, the ambisonics- based panning does not work on the same power scale, making it louder by comparison.
* Combine some fields into a structChris Robinson2014-09-101-1/+1
|
* 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 a void* for the effect state Delete method paramChris Robinson2014-03-211-5/+2
|
* Use inline initialization for effect state factory vtablesChris Robinson2013-10-071-15/+6
|
* Constify the effect parameter of effect gettersChris Robinson2013-10-071-4/+4
|
* Use the UNUSED macro in the effectsChris Robinson2013-10-071-11/+7
|
* Use a macro for the silence thresholdChris Robinson2013-10-061-1/+1
|
* Use helpers to set channel gain arraysChris Robinson2013-10-031-8/+1
| | | | Also avoid unnecessary clearing.
* Avoid an unnecessary loopChris Robinson2013-05-291-36/+19
|
* Fix up the naming convention of effect methodsChris Robinson2013-05-291-15/+15
|
* Simplify and fix some filter gain calculationsChris Robinson2013-05-271-5/+5
|
* Move ALEQFilter to alFilter.c/h and rename it to ALfilterStateChris Robinson2013-05-271-107/+10
|
* Cleanup the ALeffectStateFactory_create methodsChris Robinson2013-05-271-1/+2
| | | | | Get rid of the ALeffectStateFactory_create macro, and use the VCALL_NOARGS helper (requires adding the 'this' factory parameter).
* Rename a variableChris Robinson2013-05-261-8/+8
|
* Pre-apply the a[0] EQ filter coefficientChris Robinson2013-05-261-5/+11
| | | | Saves 20 fp divisions per sample
* Use the helper macros in more placesChris Robinson2013-05-261-66/+34
|
* Use an ALeffectProps union to store the effect propertiesChris Robinson2013-05-251-36/+38
|
* Use a Delete method for deletable objectsChris Robinson2013-05-251-9/+2
|
* Use vtables for setting effect propertiesChris Robinson2013-05-241-12/+14
|
* Move remaining effects to the effects subdirChris Robinson2013-05-231-0/+499