pub unsafe extern "C" fn spa_ringbuffer_get_read_index(
    rbuf: *mut spa_ringbuffer,
    index: *mut u32
) -> i32
Expand description

Get the read index and available bytes for reading.

\param rbuf a spa_ringbuffer \param index the value of readindex, should be taken modulo the size of the ringbuffer memory to get the offset in the ringbuffer memory \return number of available bytes to read. values < 0 mean there was an underrun. values > rbuf->size means there was an overrun.