AUDIO
Source snapshot · 12 October 2026

API reference / ravet_graph::TransitionEvent

Enum TransitionEvent 

pub enum TransitionEvent {
    Started {
        previous_latency: usize,
        latency: usize,
        fade_frames: usize,
    },
    Completed,
    Refused,
    Superseded,
    PrimingStarted {
        history_frames: usize,
    },
    AlignmentRefused {
        previous_latency: usize,
        latency: usize,
    },
    OutputLatencyChanged {
        previous_latency: usize,
        latency: usize,
    },
}
Expand description

Audio-side transition event.

Variants§

§

Started

A proposal became current at a block boundary.

Fields

§previous_latency: usize

Latency of the engine being faded out.

§latency: usize

Latency of the new current engine.

§fade_frames: usize

Configured fade frames (0 for a cut).

§

Completed

The fade into this sequence completed; the old engine was handed back.

§

Refused

The proposal was refused mid-fade.

§

Superseded

The waiting proposal was superseded.

§

PrimingStarted

Priming of this proposal began under PrimingPolicy::History (Started follows when its fade starts, possibly at the same boundary).

Fields

§history_frames: usize

Recorded history frames the incoming engine will process.

§

AlignmentRefused

The proposal was refused at its start boundary because its latency differs from the current engine’s by more than the AlignmentPolicy::DelayLower maximum.

Fields

§previous_latency: usize

Latency of the current engine.

§latency: usize

Latency of the refused engine.

§

OutputLatencyChanged

The aligned output latency changed at this frame (only under AlignmentPolicy::DelayLower).

Fields

§previous_latency: usize

Output latency before the change.

§latency: usize

Output latency from this frame.

Trait Implementations§

§

impl Clone for TransitionEvent

§

fn clone(&self) -> TransitionEvent

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Copy for TransitionEvent

§

impl Debug for TransitionEvent

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Eq for TransitionEvent

§

impl PartialEq for TransitionEvent

§

fn eq(&self, other: &TransitionEvent) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · §

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl StructuralPartialEq for TransitionEvent

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.