Skip to main content

frames

Function frames 

Source
pub fn frames(time: Time, rate: u32) -> Result<u64, ValidationError>
Expand description

Converts nonnegative ticks to the nearest audio frame, with half ties upward. Negative times fail; a zero sampling rate produces zero frames.