Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid deinitializing backends that never initialized | Chris Robinson | 2018-03-08 | 1 | -6/+12 |
| | |||||
* | Properly limit the max number of effect slots to 2^31 - 1 | Chris Robinson | 2018-03-08 | 1 | -0/+2 |
| | |||||
* | Add SDL2 backend for playback, fix #173 | Jan Niklas Hasse | 2018-03-07 | 1 | -0/+3 |
| | |||||
* | Don't check for space in the ringbuffer before trying to write | Chris Robinson | 2018-03-03 | 1 | -2/+1 |
| | | | | The write method already checks and returns how much it managed to fit in. | ||||
* | Use a plain mutex for the property lock | Chris Robinson | 2018-03-03 | 1 | -5/+7 |
| | |||||
* | Init more stuff in InitDevice | Chris Robinson | 2018-03-03 | 1 | -18/+9 |
| | |||||
* | Use atomic variables instead of volatile | Chris Robinson | 2018-03-02 | 1 | -47/+43 |
| | |||||
* | Make bformatdec_free and ambiup_free clear the freed pointer | Chris Robinson | 2018-02-12 | 1 | -5/+2 |
| | |||||
* | Combine multiple functions called sequentially | Chris Robinson | 2018-02-11 | 1 | -5/+1 |
| | |||||
* | Use a function pointer for applying the dry mix post-process | Chris Robinson | 2018-02-10 | 1 | -0/+2 |
| | |||||
* | Make the Connected state atomic | Chris Robinson | 2018-02-04 | 1 | -9/+11 |
| | | | | Also don't send the Disconnected event more than once. | ||||
* | Provide more descriptive messages to disconnection events | Chris Robinson | 2018-02-03 | 1 | -5/+5 |
| | |||||
* | Remove the unused thunk code | Chris Robinson | 2018-02-02 | 1 | -4/+0 |
| | |||||
* | Use a semaphore to signal the event handler | Chris Robinson | 2018-02-01 | 1 | -2/+3 |
| | | | | | | | | | | | Semaphores allow for semi-persistent signals, compared to a condition variable which requires a mutex for proper detection. A semaphore can be 'post'ed after writing some data on one thread, and another thread will be able to recognize it quickly even if the post occured in between checking for data and waiting. This more correctly fixes a race condition with events since the mixer shouldn't be using mutexes, and arbitrary wake-ups just to make sure an event wasn't missed was quite inefficient. | ||||
* | Add a thread to marshal events from the mixer | Chris Robinson | 2018-01-31 | 1 | -1/+19 |
| | | | | | | To avoid having unknown user code running in the mixer thread that could significantly delay the mixed output, a lockless ringbuffer is used for the mixer to provide events that a secondary thread will pop off and process. | ||||
* | Rename EventLock to make it more clear it's protecting the callback | Chris Robinson | 2018-01-30 | 1 | -2/+2 |
| | |||||
* | Don't bother with an explicit stop backend method | Chris Robinson | 2018-01-29 | 1 | -8/+1 |
| | |||||
* | Combine common initialization code into a function | Chris Robinson | 2018-01-28 | 1 | -143/+105 |
| | |||||
* | Make EnabledEvts atomic | Chris Robinson | 2018-01-28 | 1 | -1/+1 |
| | |||||
* | Use a fixed array for the effect state factory list | Chris Robinson | 2018-01-28 | 1 | -4/+0 |
| | |||||
* | Store filters in an array of lists | Chris Robinson | 2018-01-27 | 1 | -10/+12 |
| | |||||
* | Store effects in an array of lists | Chris Robinson | 2018-01-27 | 1 | -10/+12 |
| | |||||
* | Use a vector to store the effect slot pointers | Chris Robinson | 2018-01-27 | 1 | -12/+13 |
| | | | | And make the ID a simple index into it (1-base, to avoid ID 0). | ||||
* | Use an array lookup for source IDs | Chris Robinson | 2018-01-27 | 1 | -37/+48 |
| | | | | | This is now similar to buffers, being stored in groups of 64 in a vector with the ID providing the array indices. | ||||
* | Use a different method for storing and looking up buffers | Chris Robinson | 2018-01-27 | 1 | -10/+12 |
| | | | | | | | | | | | | | | | | | Rather than each buffer being individually allocated with a generated 'thunk' ID that's used with a uint:ptr map, buffers are allocated in arrays of 64 within a vector. Each group of 64 has an associated 64-bit mask indicating which are free to use, and the buffer ID is comprised of the two array indices which directly locate the buffer (no searching, binary or otherwise). Currently no buffers are actually deallocated after being allocated, though they are reused. So an app that creates a ton of buffers once, then deletes them all and uses only a couple from then on, will have a bit of waste, while an app that's more consistent with the number of used buffers won't be a problem. This can be improved by removing elements of the containing vector that contain all-free buffers while there are plenty of other free buffers. Also, this method can easily be applied to other resources, like sources. | ||||
* | Report AL_SOFTX_events as an in-progress extension | Chris Robinson | 2018-01-24 | 1 | -0/+1 |
| | |||||
* | Add a deprecated event type for alDopplerVelocity | Chris Robinson | 2018-01-24 | 1 | -0/+1 |
| | |||||
* | Handle event properties | Chris Robinson | 2018-01-23 | 1 | -0/+18 |
| | | | | | This just implements the event methods insofar as tracked state. No events are generated/reported yet. | ||||
* | Use a new proper buffer function with a flags parameter | Chris Robinson | 2018-01-23 | 1 | -0/+4 |
| | | | | | | Rather than hackily combining bit flags with the format, to increase the number of potential flags. alBufferData now behaves as if calling alBufferStorageSOFT with a flags value of 0. | ||||
* | More cleanup for buffer loading | Chris Robinson | 2018-01-21 | 1 | -4/+0 |
| | | | | | Don't bother with unnecessary and unused converters, and remove some unsupported queries. | ||||
* | Remove the old buffer_samples functions | Chris Robinson | 2018-01-21 | 1 | -45/+0 |
| | | | | | | | The symbols are still there and exported to retain ABI compatibility, but they no longer do anything except set an AL_INVALID_OPERATION error. They're also removed from the function and enum tables, since they're not part of any supported extension. | ||||
* | Expose a preliminary AL_SOFT_map_buffer extension for testing | Chris Robinson | 2018-01-20 | 1 | -8/+33 |
| | |||||
* | Remove unnecessary private AL_SOFT_buffer_samples2 definitions | Chris Robinson | 2018-01-19 | 1 | -9/+0 |
| | |||||
* | Finalize ALC_SOFT_device_clock | Chris Robinson | 2018-01-15 | 1 | -1/+1 |
| | |||||
* | Make NumAttrsForDevice do similar type checks as alcGetIntegerv | Chris Robinson | 2018-01-12 | 1 | -1/+2 |
| | |||||
* | Make a couple functions inline | Chris Robinson | 2018-01-12 | 1 | -14/+3 |
| | |||||
* | Clean up the EffectList members and make the list size known | Chris Robinson | 2018-01-11 | 1 | -1/+1 |
| | |||||
* | Move the FPU mode declarations to a separate header | Chris Robinson | 2018-01-11 | 1 | -0/+1 |
| | | | | Also don't use inheritance with FPUCtl. | ||||
* | Move the config function declarations to their own header | Chris Robinson | 2018-01-11 | 1 | -0/+1 |
| | | | | And rename alcConfig.c to alconfig.c for consistency. | ||||
* | Move the CPU capability flags to a separate header | Chris Robinson | 2018-01-11 | 1 | -1/+2 |
| | |||||
* | Move the compressor/limiter declarations to their own header | Chris Robinson | 2018-01-11 | 1 | -0/+1 |
| | |||||
* | Avoid using macros to access anonymous structures | Chris Robinson | 2018-01-11 | 1 | -0/+1 |
| | |||||
* | Remove standard reverb specific processing functions | Chris Robinson | 2018-01-07 | 1 | -2/+0 |
| | |||||
* | Add missing integer queries | Chris Robinson | 2017-12-21 | 1 | -23/+65 |
| | |||||
* | It's getFactory that may be NULL, not its return value... | Chris Robinson | 2017-11-26 | 1 | -3/+4 |
| | |||||
* | Don't probe a NULL backend factory | Chris Robinson | 2017-11-26 | 1 | -2/+2 |
| | |||||
* | Properly initialize with the default distance model | Chris Robinson | 2017-10-29 | 1 | -6/+3 |
| | |||||
* | Avoid a separate function to query ambisonic mode support | Chris Robinson | 2017-09-27 | 1 | -26/+10 |
| | | | | | | Now FuMa and ACN channel orders are required, as are FuMa, SN3D, and N3D normalization schemes. An integer query (alcGetIntegerv) is added for the maximum ambisonic order. | ||||
* | Re-update effect slots when context properties change | Chris Robinson | 2017-09-27 | 1 | -24/+50 |
| | | | | | Also keep all free property update structs together in the context instead of per-object. | ||||
* | Don't update context and listener props unnecessarily | Chris Robinson | 2017-09-27 | 1 | -2/+9 |
| |