pub struct ProcessCtx {
pub position: MediaTime,
pub sample_position: i64,
pub sample_rate: u32,
pub transport: TransportState,
}Expand description
Immutable information for one DSP invocation.
Fields§
§position: MediaTimeTimeline position of the first sample in this block.
sample_position: i64Exact project-rate sample index of the first sample in this block.
This avoids losing fractional tick positions at sample rates that do not
divide alpha2_time::TICKS_PER_SECOND.
sample_rate: u32Project sample rate. Resampling belongs at the host boundary.
transport: TransportStateCurrent transport state.
Implementations§
Source§impl ProcessCtx
impl ProcessCtx
Trait Implementations§
Source§impl Clone for ProcessCtx
impl Clone for ProcessCtx
impl Copy for ProcessCtx
Source§impl Debug for ProcessCtx
impl Debug for ProcessCtx
impl Eq for ProcessCtx
Source§impl PartialEq for ProcessCtx
impl PartialEq for ProcessCtx
impl StructuralPartialEq for ProcessCtx
Auto Trait Implementations§
impl Freeze for ProcessCtx
impl RefUnwindSafe for ProcessCtx
impl Send for ProcessCtx
impl Sync for ProcessCtx
impl Unpin for ProcessCtx
impl UnsafeUnpin for ProcessCtx
impl UnwindSafe for ProcessCtx
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