pub struct LiveTransportClock { /* private fields */ }Expand description
Stream-clock-backed transport source for live audio blocks.
Implementations§
Source§impl LiveTransportClock
impl LiveTransportClock
Sourcepub fn sample_frame(sample_rate_hz: u32) -> Result<Self>
pub fn sample_frame(sample_rate_hz: u32) -> Result<Self>
Creates a sample-frame clock for the given sample rate.
Sourcepub fn sample_rate_hz(&self) -> u32
pub fn sample_rate_hz(&self) -> u32
Returns the clock’s sample rate in hertz.
Sourcepub fn transport_at(&self, sample_pos: u64, playing: bool) -> Transport
pub fn transport_at(&self, sample_pos: u64, playing: bool) -> Transport
Builds a transport snapshot at a sample position and play state.
Trait Implementations§
Source§impl Clone for LiveTransportClock
impl Clone for LiveTransportClock
Source§fn clone(&self) -> LiveTransportClock
fn clone(&self) -> LiveTransportClock
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 moreSource§impl Debug for LiveTransportClock
impl Debug for LiveTransportClock
impl Eq for LiveTransportClock
Source§impl PartialEq for LiveTransportClock
impl PartialEq for LiveTransportClock
impl StructuralPartialEq for LiveTransportClock
Auto Trait Implementations§
impl Freeze for LiveTransportClock
impl RefUnwindSafe for LiveTransportClock
impl Send for LiveTransportClock
impl Sync for LiveTransportClock
impl Unpin for LiveTransportClock
impl UnsafeUnpin for LiveTransportClock
impl UnwindSafe for LiveTransportClock
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