Function prepare_ impulse_ response_ file
pub fn prepare_impulse_response_file<R: PlaybackReader>(
reader: &mut R,
options: ImpulseResponseFileOptions,
request: &ImpulseResponseRequest<'_>,
) -> Result<PreparedImpulseResponse, ImpulseResponseFileError>Expand description
Read a complete WAV/AIFF/compressed response through PlaybackReader at its
source rate and prepare it with ravet_signal::prepare_impulse_response.
Before any read: the reader must be at frame zero with 1..=64 channels and a
1..=768,000 Hz rate; options are bounded; the declared duration (or, when
unknown, maximum_source_frames) is planned with
ImpulseResponseRequest::plan, and planar f64 source storage plus read
scratch plus the request’s declared bytes must fit
request.maximum_working_bytes. Decoded f32 samples are widened exactly to f64.
Any reader error, contract violation, nonfinite sample, duration mismatch or
preparation refusal returns no partial response. There is no rollback or seek
of the reader. CONTROL/worker only; allocates and blocks on I/O.