Skip to main content

Module playback

Module playback 

Source
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§

CollectorSink
An AudioSink that collects all samples into an internal buffer.
DummyPlayer
A no-op audio player that discards all samples.

Functions§

play_audio
Play audio synchronously through the default output device.