Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Apply high-pass source filters as needed | Chris Robinson | 2014-05-17 | 1 | -5/+48 |
| | |||||
* | Add a flag to specify when the low-pass filter needs to apply | Chris Robinson | 2014-05-17 | 1 | -8/+16 |
| | |||||
* | Store the filter reference frequency in the source | Chris Robinson | 2014-05-11 | 1 | -12/+20 |
| | |||||
* | Update the source send target gains properly | Chris Robinson | 2014-05-11 | 1 | -4/+4 |
| | |||||
* | Use a struct to store the source's direct gain/gainhf properties | Chris Robinson | 2014-05-11 | 1 | -6/+6 |
| | |||||
* | Update the output buffer pointer in the Write_* methods | Chris Robinson | 2014-05-10 | 1 | -15/+11 |
| | |||||
* | Add a couple consts | Chris Robinson | 2014-05-10 | 1 | -2/+2 |
| | |||||
* | Store the current buffer queue item, rather than played buffer count | Chris Robinson | 2014-05-10 | 1 | -1/+1 |
| | |||||
* | Better pack HRTF mixing properties | Chris Robinson | 2014-05-03 | 1 | -24/+24 |
| | |||||
* | Clamp the current and target gain lower bound to epsilon | Chris Robinson | 2014-05-03 | 1 | -10/+10 |
| | | | | | Should give a bit more wiggle room for the gain stepping to get lower than the silence threshold. | ||||
* | Make HRTF stepping values per-channel | Chris Robinson | 2014-04-05 | 1 | -2/+2 |
| | |||||
* | Remove the click removal buffers for auxiliary effect slots | Chris Robinson | 2014-03-23 | 1 | -38/+0 |
| | |||||
* | Add gain stepping to the send mixers | Chris Robinson | 2014-03-23 | 1 | -2/+42 |
| | |||||
* | Remove the now-unneeded click removal buffers for the device | Chris Robinson | 2014-03-23 | 1 | -47/+8 |
| | | | | | | They are still there for auxiliary sends. However, they should go away soon enough too, and then we won't have to mess around with calculating extra "predictive" samples in the mixer. | ||||
* | Step mixing gains per-sample for non-HRTF mixing | Chris Robinson | 2014-03-23 | 1 | -15/+112 |
| | | | | | | | | | | | | | | | | | | | | | | | | This fades the dry mixing gains using a logarithmic curve, which should produce a smoother transition than a linear one. It functions similarly to a linear fade except that step = (target - current) / numsteps; ... gain += step; becomes step = powf(target / current, 1.0f / numsteps); ... gain *= step; where 'target' and 'current' are clamped to a lower bound that is greater than 0 (which makes no sense on a logarithmic scale). Consequently, the non-HRTF direct mixers do not do not feed into the click removal and pending click buffers, as this per-sample fading would do an adequate job of stopping clicks and pops caused by extreme gain changes. These buffers should be removed shortly. | ||||
* | Move the step counter and moving flag to DirectParams | Chris Robinson | 2014-03-23 | 1 | -6/+15 |
| | |||||
* | Store the HrtfState directly in the DirectParams | Chris Robinson | 2014-03-23 | 1 | -8/+7 |
| | |||||
* | Add a generic vector interface and use it for the active effect slots | Chris Robinson | 2014-03-21 | 1 | -2/+2 |
| | |||||
* | Keep track of the mix count | Chris Robinson | 2014-03-19 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | The purpose of this is to provide a safe way to be able to "swap" resources used by the mixer from other threads without the need to block the mixer, as well as a way to track when mixes have occurred. The idea is two-fold: It provides a way to safely swap resources. If the mixer were to (atomically) get a reference to an object to access it from, another thread would be able allocate and prepare a new object then swap the reference to it with the stored one. The other thread would then be able to wait until (count&1) is clear, indicating the mixer is not running, before safely freeing the old object for the mixer to use the new one. It also provides a way to tell if the mixer has run. With this, a thread would be able to read multiple values, which could be altered by the mixer, without requiring a mixer lock. Comparing the before and after counts for inequality would signify if the mixer has (started to) run, indicating the values may be out of sync and should try getting them again. Of course, it will still need something like a RWLock to ensure another (non-mixer) thread doesn't try to write to the values at the same time. Note that because of the possibility of overflow, the counter is not reliable as an absolute count. | ||||
* | Use a union to combine HRTF and non-HRTF mixer params | Chris Robinson | 2014-03-19 | 1 | -29/+29 |
| | |||||
* | Select the mixer when setting the mixer-specific parameters | Chris Robinson | 2014-03-19 | 1 | -39/+42 |
| | |||||
* | Store some source mixing parameters in the active source struct | Chris Robinson | 2014-03-19 | 1 | -73/+76 |
| | |||||
* | Use a separate struct for tracking active sources | Chris Robinson | 2014-03-18 | 1 | -12/+17 |
| | |||||
* | Move HRTF macros and function declarations to a separate header | Chris Robinson | 2014-02-23 | 1 | -0/+1 |
| | |||||
* | Remove an unnecessary special-case for the click removal | Chris Robinson | 2014-02-01 | 1 | -14/+1 |
| | |||||
* | Keep track of a device clock time, based on the number of samples processed | Chris Robinson | 2014-02-01 | 1 | -0/+8 |
| | |||||
* | Implement dry and wet mixers for Neon | Chris Robinson | 2014-01-26 | 1 | -0/+8 |
| | | | | Code provided by Philippe Simons <[email protected]>. | ||||
* | Move the base MidiSynth to a separate file | Chris Robinson | 2013-12-17 | 1 | -1/+2 |
| | |||||
* | Create and use a MidiSynth on playback devices | Chris Robinson | 2013-11-27 | 1 | -0/+3 |
| | |||||
* | Add min/max/clamp methods for doubles | Chris Robinson | 2013-11-27 | 1 | -0/+4 |
| | |||||
* | Use C99 inline in more places | Chris Robinson | 2013-11-04 | 1 | -0/+22 |
| | |||||
* | Rename VCALL and VCALL0 to V and V0 | Chris Robinson | 2013-11-02 | 1 | -6/+6 |
| | |||||
* | Modify how VCALL is handled | Chris Robinson | 2013-10-28 | 1 | -6/+6 |
| | | | | | | | | | | | Now instead of specifying the arguments as a third argument to the macro, like VCALL(object,function,(arg1, arg2)); they are specified separately after the macro, like VCALL(object,function)(arg1, arg2); Also, VCALL_NOARGS has been removed in favor of VCALL0, which behaves like above but expects an empty argument list (a separate macro is needed to work around preprocessor limitations). | ||||
* | Use helper macros to convert between degrees and radians | Chris Robinson | 2013-10-08 | 1 | -30/+30 |
| | |||||
* | Don't store the effect slot in SendParams | Chris Robinson | 2013-10-06 | 1 | -5/+24 |
| | | | | This makes it much more like DirectParams. | ||||
* | Rename Filter param member to LpFilter | Chris Robinson | 2013-10-06 | 1 | -4/+4 |
| | |||||
* | Use a separate value for the maximum buffer channels | Chris Robinson | 2013-07-23 | 1 | -2/+2 |
| | | | | | | | Unlike the device, input buffers are accessed based on channel numbers instead of enums. This means the maximum number of channels they hold depends on the number of channels any one format can have, rather than the total number of recognized channels. Currently, this is 8 for 7.1. | ||||
* | Improve the source's low-pass filter response | Chris Robinson | 2013-07-20 | 1 | -4/+4 |
| | |||||
* | Limit the source step to 10 | Chris Robinson | 2013-07-02 | 1 | -14/+4 |
| | | | | | | | | | This means the combination of the buffer frequency, source pitch, and doppler shift can't exceed 10x the device playback frequency. This is needed to keep the mixer from starving with a really high increment, causing small DstBufferSize values that require a lot of iterations. | ||||
* | Fix up the naming convention of effect methods | Chris Robinson | 2013-05-29 | 1 | -4/+4 |
| | |||||
* | Use C99's inline instead of __inline | Chris Robinson | 2013-05-28 | 1 | -12/+12 |
| | |||||
* | Use the high-shelf filter in place of low-pass | Chris Robinson | 2013-05-28 | 1 | -4/+4 |
| | | | | | They effectively both work to lower (or raise) high frequencies. However, the high-shelf performs better when gain=1. | ||||
* | Simplify and fix some filter gain calculations | Chris Robinson | 2013-05-27 | 1 | -6/+12 |
| | |||||
* | Use ALfilterState for the source direct and send filters | Chris Robinson | 2013-05-27 | 1 | -22/+17 |
| | |||||
* | Use generic VCALL[_NOARGS] macros instead of type-specific wrappers | Chris Robinson | 2013-05-27 | 1 | -6/+6 |
| | |||||
* | Use an ALeffectProps union to store the effect properties | Chris Robinson | 2013-05-25 | 1 | -6/+6 |
| | |||||
* | Use restrict instead of RESTRICT | Chris Robinson | 2013-05-22 | 1 | -5/+5 |
| | |||||
* | Use a properly-defined history for the FILTER struct | Chris Robinson | 2013-05-21 | 1 | -5/+9 |
| | |||||
* | Fix overflow issues when converting float to int | Chris Robinson | 2013-04-22 | 1 | -7/+10 |
| | | | | | | | | 32-bit floats can only reach between -16777215...+16777215 (25 bits) before it starts losing whole-number accuracy. Some compiler optimizations may break trying to multiply a float by 2147483647.0 when the result is given right to a float parameter, causing it instead to multiply by the nearest representable float value, 2147483648.0. | ||||
* | Add a missing cast to silence MSVC | Chris Robinson | 2013-03-22 | 1 | -1/+1 |
| |