aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ringbuffer.h
Commit message (Collapse)AuthorAgeFilesLines
* Use a FlexArray for ringbuffer storageChris Robinson2019-06-051-1/+5
|
* Use al::byte instead of char for generic data storageChris Robinson2019-05-261-2/+3
|
* Fix the ringbuffer write limitChris Robinson2019-01-031-1/+1
| | | | | | | Previously it just limited the returned write space, irrespective of how much had already been written. The buffer could still be filled up by doing multiple writes. Now the size is limited by adjusting the read pointer by the real vs limited difference when calculating the writable space.
* Return unique_ptrs instead of raw pointersChris Robinson2018-12-271-4/+2
| | | | For the ring buffer, channel converter, and sample converter.
* Clean up the ring buffer struct and use member functionsChris Robinson2018-12-261-60/+62
|
* Use a normal delete instead of ll_ringbuffer_freeChris Robinson2018-12-221-21/+32
| | | | And use RingBufferPtr in more places
* Add a unique_ptr alias for the ringbufferChris Robinson2018-11-271-0/+8
|
* Return the ringbuffer data pointers as a pairChris Robinson2018-11-191-18/+16
|
* Make ll_ringbuffer_write/read take void*/const void*Chris Robinson2018-11-191-3/+3
|
* Add extern "C" to some headersChris Robinson2018-03-091-0/+8
|
* Ensure at least the specified ringbuffer size is writableChris Robinson2018-03-021-4/+44
| | | | | | Previously, all but one of the specified size could be written (so for a size of n, only n-1 was guaranteed writable). All users pretty much compensated for this, but it makes more sense to fix it at the source.
* Add an option to limit the write size of the ringbufferChris Robinson2018-03-011-1/+1
|
* Move the ringbuffer declarations to a separate headerChris Robinson2018-01-111-0/+29
And rename alcRing.c to ringbuffer.c for consistency.