Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid potentially writing partial samples | Chris Robinson | 2018-02-03 | 1 | -1/+3 |
| | |||||
* | Provide more descriptive messages to disconnection events | Chris Robinson | 2018-02-03 | 13 | -61/+86 |
| | |||||
* | Add a disconnected event type | Chris Robinson | 2018-02-03 | 2 | -0/+18 |
| | |||||
* | Add missing header for UINT_MAX | Chris Robinson | 2018-02-02 | 1 | -0/+1 |
| | |||||
* | Remove the unused thunk code | Chris Robinson | 2018-02-02 | 1 | -4/+0 |
| | |||||
* | Don't generate Buffer Completed events for static sources | Chris Robinson | 2018-02-01 | 1 | -9/+34 |
| | |||||
* | Use an atomic instead of volatile to tell a thread to quit | Chris Robinson | 2018-02-01 | 1 | -6/+5 |
| | |||||
* | Use semaphores to signal for more samples with JACK and OpenSL | Chris Robinson | 2018-02-01 | 2 | -54/+16 |
| | |||||
* | Use a semaphore to signal the event handler | Chris Robinson | 2018-02-01 | 2 | -3/+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. | ||||
* | Send buffer completed events when enabled | Chris Robinson | 2018-02-01 | 2 | -11/+38 |
| | |||||
* | 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 | 18 | -348/+209 |
| | |||||
* | Call the backend close method in the destructor | Chris Robinson | 2018-01-28 | 13 | -79/+125 |
| | |||||
* | 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. | ||||
* | Don't rely on alMain.h in alBuffer.h | Chris Robinson | 2018-01-26 | 1 | -0/+78 |
| | |||||
* | Construct error messages using parameterized values | Chris Robinson | 2018-01-25 | 9 | -170/+176 |
| | |||||
* | 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 |
| | |||||
* | Provide messages for the remaining AL errors | Chris Robinson | 2018-01-24 | 9 | -261/+188 |
| | |||||
* | 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. | ||||
* | Handle double-precision buffers in the mixer | Chris Robinson | 2018-01-21 | 1 | -0/+5 |
| | |||||
* | 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 |
| | |||||
* | Store 8-bit sample types directly as unsigned byte | Chris Robinson | 2018-01-19 | 1 | -4/+4 |
| | |||||
* | Remove unnecessary private AL_SOFT_buffer_samples2 definitions | Chris Robinson | 2018-01-19 | 1 | -9/+0 |
| | |||||
* | Store mulaw and alaw samples directly in the buffer | Chris Robinson | 2018-01-17 | 1 | -9/+18 |
| | | | | | | | They're now decompressed on the fly in the mixer. This is not a significant performance issue given that it only needs a 512-byte lookup table, and the buffer stores half as much data (it may actually be faster, requiring less overall memory). | ||||
* | Use a voice flag to indicate it being static | Chris Robinson | 2018-01-16 | 2 | -3/+3 |
| | |||||
* | Avoid using alloca in the CoreAudio backend | Chris Robinson | 2018-01-16 | 1 | -12/+10 |
| | |||||
* | Use a global RowMixerFunc | Chris Robinson | 2018-01-16 | 3 | -30/+9 |
| | |||||
* | Properly cast some parameters for MSVC | Chris Robinson | 2018-01-16 | 1 | -5/+5 |
| | |||||
* | Add min/max/clamp functions for size_t | Chris Robinson | 2018-01-16 | 1 | -0/+4 |
| | |||||
* | Do more samples at once with the distortion effect | Chris Robinson | 2018-01-16 | 1 | -25/+21 |
| | |||||
* | Don't fade the all-pass delay changes | Chris Robinson | 2018-01-15 | 1 | -48/+28 |
| | |||||
* | Fix a comment regarding the T60 filter coefficients | Chris Robinson | 2018-01-15 | 1 | -3/+2 |
| | |||||
* | Simplify preparing the T60 filters | Chris Robinson | 2018-01-15 | 1 | -50/+11 |
| | |||||
* | Assign the HRTF storage pointers separately | Chris Robinson | 2018-01-15 | 1 | -5/+11 |
| | |||||
* | Finalize ALC_SOFT_device_clock | Chris Robinson | 2018-01-15 | 1 | -1/+1 |
| | |||||
* | Use separate input and outputs for the T60 and allpass processing | Chris Robinson | 2018-01-15 | 1 | -21/+22 |
| | |||||
* | Use a proper type for the T60 decay filter | Chris Robinson | 2018-01-15 | 1 | -25/+22 |
| | |||||
* | Separate some anonymous structs into defined structs | Chris Robinson | 2018-01-14 | 2 | -108/+110 |
| |