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
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