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§
- Stream
Info - A struct providing information about the audio stream.
Traits§
- Audio
Device - Factory for an audio output stream.
- Audio
Stream - Live audio stream handle. Drop = stop.