Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Provide asynchronous property updates for sources | Chris Robinson | 2016-05-14 | 1 | -23/+81 |
| | | | | | | | | | | | | | | | | | | | | | | | | | This necessitates a change in how source updates are handled. Rather than just being able to update sources when a dependent object state is changed (e.g. a listener gain change), now all source updates must be proactively provided. Consequently, apps that do not utilize any deferring (AL_SOFT_defer_updates or alcSuspendContext/alcProcessContext) may utilize more CPU since it'll be filling out more update containers for the mixer thread to use. The upside is that there's less blocking between the app's calling thread and the mixer thread, particularly for vectors and other multi-value properties (filters and sends). Deferring behavior when used is also improved, since updates that shouldn't be applied yet are simply not provided. And when they are provided, the mixer doesn't have to ignore them, meaning the actual deferring of a context doesn't have to synchrnously force an update -- the process call will send any pending updates, which the mixer will apply even if another deferral occurs before the mixer runs, because it'll still be there waiting on the next mixer invocation. There is one slight bug introduced by this commit. When a listener change is made, or changes to multiple sources while updates are being deferred, it is possible for the mixer to run while the sources are prepping their updates, causing some of the source updates to be seen before the other. This will be fixed in short order. | ||||
* | Hold the source map lock while handling it | Chris Robinson | 2016-05-10 | 1 | -2/+11 |
| | |||||
* | Find a valid source buffer before updating the voice | Chris Robinson | 2016-05-09 | 1 | -1/+1 |
| | |||||
* | Implement AL_EXT_STEREO_ANGLES support | Chris Robinson | 2016-03-25 | 1 | -0/+5 |
| | |||||
* | Calculate channel gain stepping just before mixing | Chris Robinson | 2016-02-14 | 1 | -0/+3 |
| | |||||
* | Make the source's buffer queue a singly-linked list | Chris Robinson | 2016-01-31 | 1 | -1/+0 |
| | |||||
* | Implement a band-limited sinc resampler | Chris Robinson | 2015-11-05 | 1 | -0/+2 |
| | | | | | | | | This is essentially a 12-point sinc resampler, unless it's resampling to a rate higher than the output, at which point it will vary between 12 and 24 points and do anti-aliasing to avoid/reduce frequencies going over nyquist. Code provided by Christopher Fitzgerald. | ||||
* | Use a constant value for the post-position padding | Chris Robinson | 2015-10-15 | 1 | -1/+1 |
| | |||||
* | Store the source's previous samples with the voice | Chris Robinson | 2015-10-15 | 1 | -0/+2 |
| | | | | | | This helps avoid different results when looping is toggled within a couple samples of the loop point, or when a processed buffer is removed while the source is only a couple samples into the next buffer. | ||||
* | Move the resampler stuff to mixer.c where it's used | Chris Robinson | 2015-10-01 | 1 | -5/+0 |
| | |||||
* | Don't keep selecting the mixer to use | Chris Robinson | 2015-09-27 | 1 | -2/+0 |
| | |||||
* | Use aluVector in some more places | Chris Robinson | 2014-12-16 | 1 | -3/+3 |
| | |||||
* | Support B-Format source rotation with AL_ORIENTATION | Chris Robinson | 2014-10-31 | 1 | -0/+1 |
| | |||||
* | Rename the source's Orientation to Direction | Chris Robinson | 2014-10-31 | 1 | -1/+1 |
| | |||||
* | Rename activesource to voice | Chris Robinson | 2014-08-21 | 1 | -3/+3 |
| | |||||
* | Use a NULL source for inactive activesources | Chris Robinson | 2014-08-21 | 1 | -2/+5 |
| | | | | Also only access the activesource's source field once per update. | ||||
* | Make the source's buffer queue head and current queue item atomic | Chris Robinson | 2014-07-31 | 1 | -5/+5 |
| | |||||
* | Add macros for generic atomic functionality | Chris Robinson | 2014-07-22 | 1 | -1/+1 |
| | |||||
* | Add a source radius property that determines the directionality of a sound | Chris Robinson | 2014-07-11 | 1 | -0/+2 |
| | | | | | | | | | At 0 distance from the listener, the sound is omni-directional. As the source and listener become 'radius' units apart, the sound becomes more directional. With HRTF, an omni-directional sound is handled using 0-delay, pass-through filter coefficients, which is blended with the real delay and coefficients as needed to become more directional. | ||||
* | Get the mixer and resampler functions when needed | Chris Robinson | 2014-06-13 | 1 | -4/+1 |
| | |||||
* | Combine the direct and send mixers | Chris Robinson | 2014-06-13 | 1 | -5/+2 |
| | |||||
* | Combine some dry and wet path types | Chris Robinson | 2014-06-13 | 1 | -2/+2 |
| | |||||
* | Move the active source's offset out of the direct params | Chris Robinson | 2014-05-24 | 1 | -0/+2 |
| | |||||
* | Use different parameters for HRTF mixers | Chris Robinson | 2014-05-18 | 1 | -1/+5 |
| | |||||
* | Apply high-pass source filters as needed | Chris Robinson | 2014-05-17 | 1 | -0/+4 |
| | |||||
* | Store the filter reference frequency in the source | Chris Robinson | 2014-05-11 | 1 | -0/+2 |
| | |||||
* | Use a struct to store the source's direct gain/gainhf properties | Chris Robinson | 2014-05-11 | 1 | -3/+4 |
| | |||||
* | Mark the buffer queue pointers volatile | Chris Robinson | 2014-05-10 | 1 | -2/+2 |
| | |||||
* | Use a RWLock to help protect the source's buffer queue | Chris Robinson | 2014-05-10 | 1 | -0/+1 |
| | | | | | In some instances this allows to to remove the device/mixer lock, or reduce how long it's held. | ||||
* | Don't explicitly store the BuffersInQueue | Chris Robinson | 2014-05-10 | 1 | -1/+0 |
| | |||||
* | Store the current buffer queue item, rather than played buffer count | Chris Robinson | 2014-05-10 | 1 | -1/+1 |
| | |||||
* | Store the HrtfState directly in the DirectParams | Chris Robinson | 2014-03-23 | 1 | -3/+0 |
| | |||||
* | Move some HRTF and mixer structs to alu.h | Chris Robinson | 2014-03-22 | 1 | -57/+0 |
| | |||||
* | Use a union to combine HRTF and non-HRTF mixer params | Chris Robinson | 2014-03-19 | 1 | -9/+11 |
| | |||||
* | Store some source mixing parameters in the active source struct | Chris Robinson | 2014-03-19 | 1 | -21/+18 |
| | |||||
* | Use a separate struct for tracking active sources | Chris Robinson | 2014-03-18 | 1 | -2/+7 |
| | |||||
* | Move HRTF macros and function declarations to a separate header | Chris Robinson | 2014-02-23 | 1 | -0/+1 |
| | |||||
* | Move some inline methods to their appropriate headers | Chris Robinson | 2013-11-04 | 1 | -0/+5 |
| | |||||
* | Fix effect slot struct declarations so KDevelop doesn't barf on them | Chris Robinson | 2013-10-07 | 1 | -2/+1 |
| | |||||
* | Don't store the effect slot in SendParams | Chris Robinson | 2013-10-06 | 1 | -1/+3 |
| | | | | This makes it much more like DirectParams. | ||||
* | Rename Filter param member to LpFilter | Chris Robinson | 2013-10-06 | 1 | -2/+2 |
| | |||||
* | Use a separate value for the maximum buffer channels | Chris Robinson | 2013-07-23 | 1 | -7/+8 |
| | | | | | | | 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. | ||||
* | Use ALfilterState for the source direct and send filters | Chris Robinson | 2013-05-27 | 1 | -4/+2 |
| | |||||
* | Use a properly-defined history for the FILTER struct | Chris Robinson | 2013-05-21 | 1 | -4/+2 |
| | |||||
* | Put the HRTF DirectParams into an anonymous struct | Chris Robinson | 2012-10-15 | 1 | -2/+4 |
| | |||||
* | Store the output buffers in the DirectParams struct | Chris Robinson | 2012-10-14 | 1 | -0/+4 |
| | |||||
* | Store some more HRTF info in the DirectParams struct | Chris Robinson | 2012-10-14 | 1 | -0/+2 |
| | |||||
* | Use a source param for the resampler and move them to the mixer source | Chris Robinson | 2012-09-14 | 1 | -0/+1 |
| | |||||
* | Fix up some more header includes | Chris Robinson | 2012-09-14 | 1 | -2/+2 |
| | |||||
* | Move the target effect slot to the SendParams struct | Chris Robinson | 2012-09-08 | 1 | -1/+2 |
| |