A ring buffer is a single-reader single-writer lock-free fixed-size queue.
libsoundio ring buffers use memory mapping techniques to enable a
contiguous buffer when reading or writing across the boundary of the ring
buffer's capacity.
requested_capacity in bytes.
Returns NULL if and only if memory could not be allocated.
Use ::soundio_ring_buffer_capacity to get the actual capacity, which might
be greater for alignment purposes.
See also ::soundio_ring_buffer_destroy
SoundIoRingBuffer*soundio_ring_buffer_create(SoundIo* soundio, int requested_capacity)
A ring buffer is a single-reader single-writer lock-free fixed-size queue. libsoundio ring buffers use memory mapping techniques to enable a contiguous buffer when reading or writing across the boundary of the ring buffer's capacity. requested_capacity in bytes. Returns NULL if and only if memory could not be allocated. Use ::soundio_ring_buffer_capacity to get the actual capacity, which might be greater for alignment purposes. See also ::soundio_ring_buffer_destroy