Expand description
Real-time audio playback via rodio
Feature-gated behind playback feature flag.
cargo build --features playback to enable.
When the playback feature is disabled, only DummyPlayer and
the helper function play_audio (which delegates to DummyPlayer)
are available.
Structs§
- Collector
Sink - An
AudioSinkthat collects all samples into an internal buffer. - Dummy
Player - A no-op audio player that discards all samples.
Functions§
- play_
audio - Play audio synchronously through the default output device.