Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |
| | ||||||
* | Move the static_assert definition to its own header | Chris Robinson | 2014-05-07 | 1 | -10/+1 | |
| | ||||||
* | Move some headers to include/ | Chris Robinson | 2014-05-06 | 1 | -217/+0 | |
| | | | | Note, these are not installed. Only headers in include/AL/ are installed. | |||||
* | Better pack HRTF mixing properties | Chris Robinson | 2014-05-03 | 1 | -11/+11 | |
| | ||||||
* | Clamp the current and target gain lower bound to epsilon | Chris Robinson | 2014-05-03 | 1 | -1/+1 | |
| | | | | | Should give a bit more wiggle room for the gain stepping to get lower than the silence threshold. | |||||
* | Convert the mmdevapi backend to the new backend API | Chris Robinson | 2014-04-25 | 1 | -3/+0 | |
| | ||||||
* | Convert the DSound backend to the new API | Chris Robinson | 2014-04-19 | 1 | -3/+0 | |
| | ||||||
* | Add a SZFMT macro for a size_t string formatter | Chris Robinson | 2014-04-19 | 1 | -0/+9 | |
| | ||||||
* | Add a GCC-specific STATIC_UPCAST macro that checks the object type | Chris Robinson | 2014-04-19 | 2 | -2/+9 | |
| | | | | | The check is compile time, and is functionally identical to the old/alternate version. | |||||
* | Use C11 alignas when available | Chris Robinson | 2014-04-19 | 3 | -16/+15 | |
| | ||||||
* | Simplify some error checking | Chris Robinson | 2014-04-18 | 1 | -14/+4 | |
| | ||||||
* | Check pthread_mutex_unlock for errors | Chris Robinson | 2014-04-18 | 1 | -3/+4 | |
| | ||||||
* | Rename AL_ONCE_INIT to AL_ONCE_FLAG_INIT | Chris Robinson | 2014-04-18 | 1 | -2/+2 | |
| | ||||||
* | Check TlsSetValue for error | Chris Robinson | 2014-04-17 | 1 | -1/+2 | |
| | ||||||
* | Rename althread_once to be more C11-like | Chris Robinson | 2014-04-17 | 1 | -3/+16 | |
| | ||||||
* | Use the thread ID for althrd_t on Windows | Chris Robinson | 2014-04-17 | 1 | -7/+3 | |
| | ||||||
* | Rename SetThreadName to althrd_setname | Chris Robinson | 2014-04-17 | 1 | -5/+1 | |
| | ||||||
* | Don't inline al_nssleep | Chris Robinson | 2014-04-17 | 1 | -11/+2 | |
| | ||||||
* | Make and use a C11-like altimespec_get wrapper function | Chris Robinson | 2014-04-17 | 1 | -1/+5 | |
| | ||||||
* | Rename althread_key_ wrappers to altss_ and move it to threads.h/c | Chris Robinson | 2014-04-17 | 1 | -0/+31 | |
| | ||||||
* | Fix some almtx_ return values | Chris Robinson | 2014-04-16 | 1 | -10/+22 | |
| | ||||||
* | Remove almtx_normal and almtx_errorcheck | Chris Robinson | 2014-04-16 | 1 | -3/+1 | |
| | ||||||
* | Fix althrd_sleep return value | Chris Robinson | 2014-04-16 | 1 | -3/+9 | |
| | ||||||
* | Avoid using a Sleep() wrapper | Chris Robinson | 2014-04-16 | 1 | -0/+12 | |
| | ||||||
* | Remove the old thread wrappers for the new ones | Chris Robinson | 2014-04-16 | 1 | -10/+4 | |
| | ||||||
* | Implement a C11-like thread wrapper and use it in mmdevapi and pulseaudio | Chris Robinson | 2014-04-16 | 1 | -5/+77 | |
| | ||||||
* | Use a C11-like mutex wrapper instead of CRITICAL_SECTIONs | Chris Robinson | 2014-04-16 | 1 | -0/+86 | |
| | ||||||
* | Use C11's static_assert when available | Chris Robinson | 2014-04-07 | 1 | -0/+12 | |
| | ||||||
* | Make HRTF stepping values per-channel | Chris Robinson | 2014-04-05 | 1 | -2/+2 | |
| | ||||||
* | Use an al_string for the device name | Chris Robinson | 2014-03-28 | 1 | -1/+2 | |
| | ||||||
* | Use C99 VLA instead of alloca when available | Chris Robinson | 2014-03-25 | 1 | -0/+6 | |
| | ||||||
* | Remove an unused method | Chris Robinson | 2014-03-23 | 1 | -9/+0 | |
| | ||||||
* | Remove the last bits of the predictive sample processing | Chris Robinson | 2014-03-23 | 1 | -3/+3 | |
| | ||||||
* | Remove the click removal buffers for auxiliary effect slots | Chris Robinson | 2014-03-23 | 2 | -7/+1 | |
| | ||||||
* | Add gain stepping to the send mixers | Chris Robinson | 2014-03-23 | 1 | -1/+8 | |
| | ||||||
* | Remove the now-unneeded click removal buffers for the device | Chris Robinson | 2014-03-23 | 2 | -7/+1 | |
| | | | | | | 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 | -2/+7 | |
| | | | | | | | | | | | | | | | | | | | | | | | | 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 | -2/+4 | |
| | ||||||
* | Store the HrtfState directly in the DirectParams | Chris Robinson | 2014-03-23 | 2 | -6/+3 | |
| | ||||||
* | Move some HRTF and mixer structs to alu.h | Chris Robinson | 2014-03-22 | 2 | -63/+60 | |
| | ||||||
* | Use a void* for the effect state Delete method param | Chris Robinson | 2014-03-21 | 2 | -2/+6 | |
| | ||||||
* | Add a generic vector interface and use it for the active effect slots | Chris Robinson | 2014-03-21 | 1 | -3/+6 | |
| | ||||||
* | Use flexible array members to pad the device and context structs | Chris Robinson | 2014-03-20 | 1 | -0/+6 | |
| | | | | | This helps avoid the convoluted math otherwise required to ensure the default slot and listener, respectively, are aligned. | |||||
* | Keep track of the mix count | Chris Robinson | 2014-03-19 | 1 | -0/+7 | |
| | | | | | | | | | | | | | | | | | | | | | | | | 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 | -9/+11 | |
| | ||||||
* | Store some source mixing parameters in the active source struct | Chris Robinson | 2014-03-19 | 2 | -24/+21 | |
| | ||||||
* | Use a separate struct for tracking active sources | Chris Robinson | 2014-03-18 | 2 | -5/+10 | |
| | ||||||
* | Store the old-style backend funcs in the wrapper | Chris Robinson | 2014-03-17 | 1 | -1/+0 | |
| |