soundio_ring_buffer_create

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

  1. SoundIoRingBuffer* soundio_ring_buffer_create(SoundIo* soundio, int requested_capacity)
    extern (C) @nogc nothrow
    soundio_ring_buffer_create
  2. void soundio_ring_buffer_destroy(SoundIoRingBuffer* ring_buffer)

Meta