Skip to main content

Module device

Module device 

Source
Expand description

Defines the abstract AudioDevice / AudioStream traits.

An AudioDevice is a factory for an output stream: call AudioDevice::open once and you get a long-lived AudioStream handle whose Drop stops the stream. The device itself is consumed during opening — it has no state worth keeping after the stream is live.

The backend’s hardware callback drains samples from the AudioMixBus provided to open. Audio lanes write into the same bus from the main thread; the bus is the sole synchronisation boundary between the two worlds.

Structs§

StreamInfo
A struct providing information about the audio stream.

Traits§

AudioDevice
Factory for an audio output stream.
AudioStream
Live audio stream handle. Drop = stop.