Skip to main content

evaluate_audio

Function evaluate_audio 

Source
pub fn evaluate_audio<'a>(
    project: &Project,
    index: &'a ActiveIndex,
    range: TimeRange,
) -> Result<AudioSpanDesc<'a>, EvalError>
Expand description

Evaluates every audible clip overlapping a half-open timeline span.

Clips on audio tracks always qualify; a clip on a visual track qualifies when its source declares an audio stream. Overlapping clips are all reported and the mixer sums them.

Gain, pan and fade curves are left unsampled; the mixer evaluates them per sample so that automation is independent of the host block size.

Allocates two exactly sized lists; use evaluate_audio_in to reuse memory across spans.

ยงErrors

Returns EvalError::IndexProjectMismatch when the index was built for another project, and EvalError::UnmappableClip for unrepresentable retiming.