aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/autowah.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove broken autowah effect codeChris Robinson2016-07-261-271/+0
| | | | | It's been disabled forever, and I have no idea how to make it work properly. Better to just redo it when making something that works.
* Rename input_gain to b0Chris Robinson2016-07-261-1/+1
|
* Get rid of an unnecessary copy of ALeffectPropsChris Robinson2016-05-131-5/+5
|
* Provide (mostly) lockless updates for effect slotsChris Robinson2016-05-121-6/+7
| | | | | | | | | | | | | | | | | 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-1/+1
| | | | | | 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.
* Organize the dry buffer properties into a structChris Robinson2016-03-091-1/+1
|
* 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
|
* Reorder filterstate propertiesChris Robinson2016-01-231-13/+13
|
* 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-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-3/+1
|
* Avoid taking the square-root of the ambient gainChris Robinson2014-10-111-3/+3
| | | | | | 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 logarithmic adjustment for the gain in the autowah effectChris Robinson2014-05-171-7/+7
|
* Use a void* for the effect state Delete method paramChris Robinson2014-03-211-5/+2
|
* Change the autowah to have a cutoff range of 20Hz to 20KHzChris Robinson2014-02-071-1/+1
| | | | | | This is the same as allowed in the SF2 spec for its filter cutoff generator, which can be used for a wah effect in MIDI. It makes sense to use a similar range here.
* Fix some typesChris Robinson2014-02-071-2/+2
|
* Use a different autowah filter rangeChris Robinson2013-12-201-1/+1
| | | | Still just guesses, but this seems to avoid math problems with low peak gains.
* Redo the autowah effectChris Robinson2013-11-071-71/+71
| | | | | | | | It's now a low-pass filter with a cutoff that varies according to the input signal amplitude. There remains issues with apparent feedback in the resonant frequency with high resonance values. The actual cutoff range for the filter is also a guess.
* Use a helper macro for pi*2Chris Robinson2013-10-081-1/+1
|
* Use inline initialization for effect state factory vtablesChris Robinson2013-10-071-8/+6
|
* Constify the effect parameter of effect gettersChris Robinson2013-10-071-7/+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
|
* Convert autowah.c line-endingsChris Robinson2013-10-031-284/+284
|
* Use helpers to set channel gain arraysChris Robinson2013-10-031-13/+4
| | | | Also avoid unnecessary clearing.
* Implement the Autowah effect.Chris Robinson2013-10-031-0/+293