Expand description
PCM character-device commands, bounded playback, and a fixed-capacity mixer.
Backends own their hardware stream and a Renderer; callers own the
PlaybackBuffer or AudioSystem storage. Codecs and resampling belong to applications.
Structs§
- Audio
Stream Device - The local
/dev/audio/playbackcharacter device. - Audio
System - A fixed pool of independent 48 kHz stereo interleaved F32 streams and outputs.
- Configuration
- Fixed-width device payload. Frames contain one sample per interleaved channel.
- Failure
Reporter - A cheap handle for host error callbacks and backend teardown.
- GET_
CONFIGURATION - GET_
VOLUME - GET_
WRITABLE - Output
Device - Serializes writers; the callback never takes this lock.
- Output
Handle - One independently drained output queue. Dropping it releases its output slot.
- Output
Reservation - Keeps a transferred native output slot reserved until the adapter is dropped.
- Playback
Buffer - Caller-owned storage, including exactly
NPCM bytes plus control/cursor state. - Renderer
- The only consumer of a playback queue, owned by the hardware callback. All render methods return frames consumed and fill the remainder with silence.
- SET_
CONFIGURATION - SET_
VOLUME - START
- STOP
- Stream
Handle - An exclusive reservation of one application stream; dropping it frees the slot.
Enums§
- Sample
Format - The little-endian representation of one PCM sample in the device byte stream.