Expand description
Ring buffer for audio data transport
Provides lock-free single-producer single-consumer ring buffers for efficient audio data transfer between producer (client) and consumer (mixer/pipeline) threads.
§Design
AudioRingBuffer is a byte-level ring buffer using atomic read/write
positions for lock-free operation in the SPSC case. SharedAudioBuffer
wraps it with a Mutex to support multi-producer scenarios and provides
a typed i16 sample interface.
Structs§
- Audio
Ring Buffer - Lock-free single-producer single-consumer ring buffer for audio data
- Shared
Audio Buffer - Mutex-protected audio ring buffer with typed sample interface