Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't pass the vector's capacity as a parameter to vector_reserve | Chris Robinson | 2014-03-31 | 2 | -7/+7 |
| | |||||
* | Use vectors for the dsound device lists | Chris Robinson | 2014-03-31 | 1 | -127/+79 |
| | |||||
* | Use an al_string for the device name | Chris Robinson | 2014-03-28 | 17 | -43/+38 |
| | |||||
* | strlen returns size_t | Chris Robinson | 2014-03-28 | 1 | -1/+1 |
| | |||||
* | Use al_string to handle mmdevapi and dsound device names | Chris Robinson | 2014-03-28 | 4 | -79/+135 |
| | |||||
* | Add an al_string type and use it for the device lists | Chris Robinson | 2014-03-28 | 4 | -50/+130 |
| | |||||
* | Properly handle special folder names with extended characters | Chris Robinson | 2014-03-28 | 2 | -35/+70 |
| | |||||
* | Wrap fopen calls under Windows | Chris Robinson | 2014-03-28 | 5 | -16/+52 |
| | | | | | | | The idea is that all filenames we deal with are encoded as UTF-8, but the Windows functions that take a char string interpret it using the ANSI codepage. So instead, we convert the UTF-8 string to a wchar string, and then use the wchar functions for proper extended character filename support. | ||||
* | Check for ftw and _wfindfirst | Chris Robinson | 2014-03-27 | 2 | -2/+22 |
| | |||||
* | Don't have VECTOR_INIT "return" anything | Chris Robinson | 2014-03-27 | 1 | -2/+2 |
| | |||||
* | Reactivate the mmdevapi audio client and set the event handle on reset | Chris Robinson | 2014-03-27 | 1 | -10/+26 |
| | |||||
* | Use C99 VLA instead of alloca when available | Chris Robinson | 2014-03-25 | 4 | -19/+39 |
| | |||||
* | Remove setState from the MidiSynth vtable | Chris Robinson | 2014-03-23 | 5 | -15/+4 |
| | |||||
* | Remove an unused method | Chris Robinson | 2014-03-23 | 2 | -10/+0 |
| | |||||
* | Remove an unnecessary conditional | Chris Robinson | 2014-03-23 | 1 | -7/+1 |
| | |||||
* | Remove the last bits of the predictive sample processing | Chris Robinson | 2014-03-23 | 3 | -8/+6 |
| | |||||
* | Remove the click removal buffers for auxiliary effect slots | Chris Robinson | 2014-03-23 | 9 | -55/+8 |
| | |||||
* | Identity gain step is 1, not 0 | Chris Robinson | 2014-03-23 | 1 | -1/+1 |
| | |||||
* | Fix Neon gain step loops | Chris Robinson | 2014-03-23 | 1 | -2/+2 |
| | |||||
* | Add gain stepping to the send mixers | Chris Robinson | 2014-03-23 | 7 | -66/+185 |
| | |||||
* | Add some integer casts, and a range check | Chris Robinson | 2014-03-23 | 2 | -3/+8 |
| | |||||
* | Remove the now-unneeded click removal buffers for the device | Chris Robinson | 2014-03-23 | 10 | -73/+20 |
| | | | | | | 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. | ||||
* | Don't feed the HRTF mix to the click removal and pending click buffers | Chris Robinson | 2014-03-23 | 1 | -40/+3 |
| | | | | | The coefficients (which control the volume and panning) already use stepping to non-abruptly fade the mix. | ||||
* | Step mixing gains per-sample for non-HRTF mixing | Chris Robinson | 2014-03-23 | 7 | -60/+212 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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 | 5 | -14/+25 |
| | |||||
* | Store the HrtfState directly in the DirectParams | Chris Robinson | 2014-03-23 | 10 | -63/+49 |
| | |||||
* | Don't try to use __restrict as a replacement for restrict | Chris Robinson | 2014-03-23 | 1 | -13/+2 |
| | | | | | The compiler it's intended for, MSVC, can't use it anyway because of problems it causes with __declspec(restrict). | ||||
* | Add a stub 'soft' MIDI synth handler | Chris Robinson | 2014-03-22 | 4 | -1/+147 |
| | | | | | Eventually this one will be used to handle MIDI internally, using our own mixers and resamplers. | ||||
* | Move some HRTF and mixer structs to alu.h | Chris Robinson | 2014-03-22 | 2 | -63/+60 |
| | |||||
* | Use a void* for the MidiSynth Delete method param | Chris Robinson | 2014-03-22 | 3 | -18/+9 |
| | |||||
* | Use a void* for the backend Delete method param | Chris Robinson | 2014-03-22 | 7 | -73/+32 |
| | |||||
* | Use a void* for the effect state Delete method param | Chris Robinson | 2014-03-21 | 13 | -56/+40 |
| | |||||
* | Avoid a size_t-to-ALuint conversion warning | Chris Robinson | 2014-03-21 | 1 | -1/+1 |
| | |||||
* | Increase the vector reserve as needed when pushing in new items | Chris Robinson | 2014-03-21 | 4 | -25/+21 |
| | |||||
* | Rename the vector's Max field to Capacity | Chris Robinson | 2014-03-21 | 3 | -15/+15 |
| | |||||
* | Use vectors for the GenModList | Chris Robinson | 2014-03-21 | 2 | -167/+103 |
| | |||||
* | Add a generic vector interface and use it for the active effect slots | Chris Robinson | 2014-03-21 | 7 | -36/+95 |
| | |||||
* | Use flexible array members to pad the device and context structs | Chris Robinson | 2014-03-20 | 2 | -4/+10 |
| | | | | | 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 | 2 | -0/+10 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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 | 6 | -50/+52 |
| | |||||
* | 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 | 7 | -127/+139 |
| | |||||
* | Use a separate struct for tracking active sources | Chris Robinson | 2014-03-18 | 6 | -34/+65 |
| | |||||
* | Add another directory to .gitignore | Chris Robinson | 2014-03-17 | 1 | -0/+1 |
| | |||||
* | Remove some unneeded code and unnecessary macros in the OpenSL backend | Chris Robinson | 2014-03-17 | 1 | -73/+20 |
| | |||||
* | Store the old-style backend funcs in the wrapper | Chris Robinson | 2014-03-17 | 4 | -30/+33 |
| | |||||
* | Don't define HAVE_DYNLOAD with the IDE parser | Chris Robinson | 2014-03-17 | 1 | -1/+1 |
| | |||||
* | Don't assume the default mmdevapi device is in the collection | Chris Robinson | 2014-03-17 | 1 | -2/+2 |
| | |||||
* | Avoid GCC's macro arg concat extension with IDE parsing | Chris Robinson | 2014-03-17 | 1 | -1/+1 |
| | |||||
* | Return the original value from CompExchange* | Chris Robinson | 2014-03-09 | 3 | -30/+27 |
| |