aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/event.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't check for space in the ringbuffer before trying to writeChris Robinson2018-03-031-2/+1
| | | | The write method already checks and returns how much it managed to fit in.
* Avoid some code duplicationChris Robinson2018-03-031-12/+8
|
* Add some missing locks to protect reading stateChris Robinson2018-03-031-0/+2
|
* Add an option to limit the write size of the ringbufferChris Robinson2018-03-011-1/+1
|
* Clear stale 'post's on the event semphaphoreChris Robinson2018-02-111-0/+5
|
* Add a disconnected event typeChris Robinson2018-02-031-0/+2
|
* Use a semaphore to signal the event handlerChris Robinson2018-02-011-15/+4
| | | | | | | | | | | 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.
* Fix check for matching event typeChris Robinson2018-02-011-1/+1
|
* Add a thread to marshal events from the mixerChris Robinson2018-01-311-2/+72
| | | | | | 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 callbackChris Robinson2018-01-301-4/+2
|
* Make EnabledEvts atomicChris Robinson2018-01-281-2/+17
|
* Construct error messages using parameterized valuesChris Robinson2018-01-251-3/+3
|
* Add a deprecated event type for alDopplerVelocityChris Robinson2018-01-241-0/+2
|
* Provide messages for the remaining AL errorsChris Robinson2018-01-241-7/+4
|
* Handle event propertiesChris Robinson2018-01-231-0/+65
This just implements the event methods insofar as tracked state. No events are generated/reported yet.