Skip to main content

sample_channel

Function sample_channel 

Source
pub fn sample_channel(
    samples: &DataSamples,
    channel: usize,
    arity: usize,
    time: MediaTime,
) -> Option<Vec<f32>>
Expand description

The value of channel at time, arity numbers, with the data rules: hold takes the sample at or before time, linear interpolates between two known neighbours, a lost sample holds the last known value, and times outside the samples clamp. None when the channel has no known value.