pub struct TimestampGenerator { /* private fields */ }
Expand description
Generates timestamps according to a timebase and rate of playback of uncompressed audio.
Since the rate is constant, this can also be used to extrapolate timestamps.
Implementations§
Source§impl TimestampGenerator
impl TimestampGenerator
pub fn timestamp_at(&self, input_index: usize) -> u64
Auto Trait Implementations§
impl Freeze for TimestampGenerator
impl RefUnwindSafe for TimestampGenerator
impl Send for TimestampGenerator
impl Sync for TimestampGenerator
impl Unpin for TimestampGenerator
impl UnwindSafe for TimestampGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more