Skip to main content

frames

Function frames 

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

Converts ticks to the nearest audio frame, with half ties upward. A zero sampling rate produces zero frames.