pub struct AudioClock {
pub pts: f64,
pub taken_at: f64,
pub span: f64,
pub rate: f64,
}Expand description
Where the sound is: the media time of the first sample of the chunk
the output last took, when it took it, and how much media time that
chunk covers (at speed rate, each second of samples covers rate
seconds of the clip, whose pitch stays put). Between takes the clock runs on from the chunk’s start,
but never past its end, so a starved output stops the clock.
Fields§
§pts: f64§taken_at: f64§span: f64§rate: f64Implementations§
Trait Implementations§
Source§impl Clone for AudioClock
impl Clone for AudioClock
Source§fn clone(&self) -> AudioClock
fn clone(&self) -> AudioClock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AudioClock
Source§impl Debug for AudioClock
impl Debug for AudioClock
Source§impl PartialEq for AudioClock
impl PartialEq for AudioClock
impl StructuralPartialEq for AudioClock
Auto Trait Implementations§
impl Freeze for AudioClock
impl RefUnwindSafe for AudioClock
impl Send for AudioClock
impl Sync for AudioClock
impl Unpin for AudioClock
impl UnsafeUnpin for AudioClock
impl UnwindSafe for AudioClock
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