Skip to main content

ceil_frames

Function ceil_frames 

Source
pub fn ceil_frames(time: Duration, rate: u32) -> u64
Expand description

Converts a duration to the smallest covering number of audio frames. Integer arithmetic avoids floating-point endpoint drift.