⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module buffer

Module buffer 

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

AudioRingBuffer
Lock-free single-producer single-consumer ring buffer for audio data
SharedAudioBuffer
Mutex-protected audio ring buffer with typed sample interface