Function open_ output
pub fn open_output<P: Processor + Send + 'static>(
device: &Device,
config: StreamConfig,
maximum_frames: usize,
processor: P,
) -> Result<OutputStream, OpenError>Expand description
Open an explicitly configured f32 output stream; unsupported device settings
are returned by CPAL. No implicit sample format conversion or rate fallback.
The device rate is checked after construction; mismatch drops the stream
before returning OpenError::SampleRateMismatch. A failed rate query also
rejects the stream. See device_nominal_sample_rate for backend limits.
Fixed buffer size is a backend request, not a guaranteed callback size.
Processors are moved into the callback after preparation. A panic silences
output and permanently disables DSP for this stream; reopen to recover.
Panic unwinding/handlers are exceptional and have no real-time guarantee.