pub enum AudioSink {
Wav(Box<WavWriter<File>>),
RawPcm,
None,
}Expand description
Where synthesised PCM goes, and the audio_chunk events that describe it.
The two destinations are mutually exclusive by contract (AGENTS.md agent ergonomics): either
events own stdout and audio goes to -o PATH, or --stream raw gives stdout to PCM and every
event goes to stderr. Raw bytes and NDJSON are never interleaved on one stream, so this type
owns the decision once instead of leaving it to each call site.
audio_chunk reports the bytes written, never the bytes themselves.
Variants§
Wav(Box<WavWriter<File>>)
A WAV file. The header is finalised on [AudioSink::finish], so a run cut short still
leaves a playable file describing the samples that landed.
RawPcm
Raw little-endian 16-bit PCM on a caller-supplied stream (--stream raw).
None
--check and other non-synthesising paths.
Auto Trait Implementations§
impl Freeze for AudioSink
impl RefUnwindSafe for AudioSink
impl Send for AudioSink
impl Sync for AudioSink
impl Unpin for AudioSink
impl UnsafeUnpin for AudioSink
impl UnwindSafe for AudioSink
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).