Skip to main content

Module audio

Module audio 

Source
Expand description

Audio character-device control contract (device::kind::AUDIO).

Configuration is fixed for an open stream. GET_WRITABLE returns free bytes. Volume is 0..=100 percent, applied when rendering. STOP pauses on the next callback and retains queued PCM. GET_UNDERRUNS returns the number of output underruns since boot. The count saturates at u32::MAX.

Structs§

Configuration
Fixed-width device payload. Frames contain one sample per interleaved channel.
GET_CONFIGURATION
GET_UNDERRUNS
GET_VOLUME
GET_WRITABLE
SET_CONFIGURATION
SET_VOLUME
START
STOP

Enums§

SampleFormat
The little-endian representation of one PCM sample in the device byte stream.