pub fn ceil_frames(time: Duration, rate: u32) -> u64
Converts a duration to the smallest covering number of audio frames. Integer arithmetic avoids floating-point endpoint drift.