Struct Crossfade Policy
pub struct CrossfadePolicy {
pub frames: usize,
pub law: CrossfadeLaw,
}Expand description
Explicit crossfade between old and new engines. Both engines process the same
input for frames frames starting at the block boundary where the transition
starts; each output sample is S(old) * y_old + S(new) * y_new evaluated in
the native sample type. frames == 0 is an explicit cut: the old engine is
retired at that boundary without running. The new engine starts from its own
prepared (zero) history; there is no history transfer between engines.
Fields§
§frames: usizeFade length in frames, 0..=1,048,576.
law: CrossfadeLawGain law.
Trait Implementations§
§impl Clone for CrossfadePolicy
impl Clone for CrossfadePolicy
§fn clone(&self) -> CrossfadePolicy
fn clone(&self) -> CrossfadePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CrossfadePolicy
§impl Debug for CrossfadePolicy
impl Debug for CrossfadePolicy
impl Eq for CrossfadePolicy
§impl PartialEq for CrossfadePolicy
impl PartialEq for CrossfadePolicy
impl StructuralPartialEq for CrossfadePolicy
Auto Trait Implementations§
impl Freeze for CrossfadePolicy
impl RefUnwindSafe for CrossfadePolicy
impl Send for CrossfadePolicy
impl Sync for CrossfadePolicy
impl Unpin for CrossfadePolicy
impl UnsafeUnpin for CrossfadePolicy
impl UnwindSafe for CrossfadePolicy
Blanket Implementations§
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more