Std.Audio.Device
17 public declarations
- closeStream
&Std.Audio.Device.Stream -> Bool -> Int -> Result[(), Std.Audio.Device.DeviceError]Release the stream exactly once, optionally sounding every queued frame.
- DeviceError
Why a bounded clip could not be presented to the default output device.
- openStream
&Std.Audio.Device.StreamPlan -> Result[Std.Audio.Device.Stream, Std.Audio.Device.DeviceError]Open the default output and return the format accepted by its queue.
- pause
&Std.Audio.Device.Stream -> Result[(), Std.Audio.Device.DeviceError]Stop consuming queued frames while keeping them and the stream's position.
- plan
Int -> Int -> Int -> Result[Std.Audio.Device.Plan, Std.Audio.Device.DeviceError]Admit two to eight preallocated buffers of 16 through 4,096 frames each.
- Plan
Queue bounds and the total monotonic deadline for one clip.
- play
&Std.Audio.Device.Plan -> &Std.Audio.Pcm -> Result[Std.Audio.Device.Playback, Std.Audio.Device.DeviceError]Play one admitted interleaved signed-16 clip and await exact completion.
- Playback
Completion reported by the native device queue.
- resume
&Std.Audio.Device.Stream -> Result[(), Std.Audio.Device.DeviceError]Continue consuming queued frames from where a pause left them.
- setVolume
&Std.Audio.Device.Stream -> Float64 -> Result[(), Std.Audio.Device.DeviceError]Set linear output volume from silence through unity.
- snapshot
&Std.Audio.Device.Stream -> Result[Std.Audio.Device.StreamSnapshot, Std.Audio.Device.DeviceError]Read one coherent telemetry sample and audio-master clock.
- Stream
One evaluation-owned output capability and its negotiated format.
- streamPlan
Std.Audio.Format -> Int -> Int -> Int -> Result[Std.Audio.Device.StreamPlan, Std.Audio.Device.DeviceError]Admit a persistent stream request before touching a device.
- StreamPlan
Bounds and requested PCM shape for a persistent output stream.
- StreamSnapshot
Monotonic counters and the audio-master media clock.
- StreamState
Observable output state without exposing a target framework.
- write
&Std.Audio.Device.Stream -> &Std.Audio.Pcm -> Result[Int, Std.Audio.Device.DeviceError]Enqueue one exact PCM chunk with bounded backpressure.
