Std.Audio.Device.play
fn
play: &Std.Audio.Device.Plan -> &Std.Audio.Pcm -> Result[Std.Audio.Device.Playback, Std.Audio.Device.DeviceError]This is a callable function.
What it does
Play one admitted interleaved signed-16 clip and await exact completion.
A program that watches for a stop request and receives one gets `Cancelled`
within a few milliseconds rather than after the clip or its deadline; the
queue is stopped at once and released before this answers.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
- Names inside [ ] are type arguments, such as the item type held by a collection.
- Result makes success and recoverable failure part of the function's type.
