pub fn frames_to_milliseconds(num_frames: usize, frame_rate_hz: u32) -> usize
Expand description

Examples

use babycat::units::frames_to_milliseconds;

let num_frames = 1323000;
let frame_rate_hz = 44100;
let thirty_seconds_as_ms = 30 * 1000;
assert_eq!(
    frames_to_milliseconds(num_frames, frame_rate_hz),
    thirty_seconds_as_ms
);