pub fn frames(time: Duration, rate: u32) -> u64
Converts ticks to the nearest audio frame, with half ties upward. A zero sampling rate produces zero frames.