1 #ifndef PA_RINGBUFFER_H
2 #define PA_RINGBUFFER_H
73 #if defined(__APPLE__)
74 #include <sys/types.h>
76 #elif defined( __GNUC__ )
78 #elif (_MSC_VER >= 1400)
80 #elif defined(_MSC_VER) || defined(__BORLANDC__)
Definition: pa_ringbuffer.h:93
ring_buffer_size_t smallMask
Definition: pa_ringbuffer.h:99
ring_buffer_size_t PaUtil_WriteRingBuffer(PaUtilRingBuffer *rbuf, const void *data, ring_buffer_size_t elementCount)
Definition: pa_ringbuffer.c:198
ring_buffer_size_t PaUtil_GetRingBufferReadRegions(PaUtilRingBuffer *rbuf, ring_buffer_size_t elementCount, void **dataPtr1, ring_buffer_size_t *sizePtr1, void **dataPtr2, ring_buffer_size_t *sizePtr2)
Definition: pa_ringbuffer.c:154
ring_buffer_size_t elementSizeBytes
Definition: pa_ringbuffer.h:100
ring_buffer_size_t PaUtil_InitializeRingBuffer(PaUtilRingBuffer *rbuf, ring_buffer_size_t elementSizeBytes, ring_buffer_size_t elementCount, void *dataPtr)
Definition: pa_ringbuffer.c:66
ring_buffer_size_t PaUtil_ReadRingBuffer(PaUtilRingBuffer *rbuf, void *data, ring_buffer_size_t elementCount)
Definition: pa_ringbuffer.c:220
ring_buffer_size_t PaUtil_GetRingBufferReadAvailable(const PaUtilRingBuffer *rbuf)
Definition: pa_ringbuffer.c:80
ring_buffer_size_t bigMask
Definition: pa_ringbuffer.h:98
long ring_buffer_size_t
Definition: pa_ringbuffer.h:83
ring_buffer_size_t bufferSize
Definition: pa_ringbuffer.h:95
volatile ring_buffer_size_t writeIndex
Definition: pa_ringbuffer.h:96
struct PaUtilRingBuffer PaUtilRingBuffer
volatile ring_buffer_size_t readIndex
Definition: pa_ringbuffer.h:97
void PaUtil_FlushRingBuffer(PaUtilRingBuffer *rbuf)
Definition: pa_ringbuffer.c:93
ring_buffer_size_t PaUtil_GetRingBufferWriteAvailable(const PaUtilRingBuffer *rbuf)
Definition: pa_ringbuffer.c:86
char * buffer
Definition: pa_ringbuffer.h:101
ring_buffer_size_t PaUtil_AdvanceRingBufferWriteIndex(PaUtilRingBuffer *rbuf, ring_buffer_size_t elementCount)
Definition: pa_ringbuffer.c:139
ring_buffer_size_t PaUtil_AdvanceRingBufferReadIndex(PaUtilRingBuffer *rbuf, ring_buffer_size_t elementCount)
Definition: pa_ringbuffer.c:187
ring_buffer_size_t PaUtil_GetRingBufferWriteRegions(PaUtilRingBuffer *rbuf, ring_buffer_size_t elementCount, void **dataPtr1, ring_buffer_size_t *sizePtr1, void **dataPtr2, ring_buffer_size_t *sizePtr2)
Definition: pa_ringbuffer.c:104