pub fn frames(time: Time, rate: u32) -> Result<u64, ValidationError>
Converts nonnegative ticks to the nearest audio frame, with half ties upward. Negative times fail; a zero sampling rate produces zero frames.