pub struct AudioEffectLoad {
pub effects: usize,
pub effects_at_ticks: i64,
pub delay_ticks: u64,
pub delay_at_ticks: i64,
}Expand description
The most audio effect state a project holds at once.
The master’s, every bus’s and every track’s effects hold state throughout, and so does each
routing edge that waits for a longer path: an output, send or key read later than its
source’s longest path holds the difference in lookahead as delay
(crate::AudioRouting::alignment). A clip’s effects hold state from
crate::AUDIO_EFFECT_STATE_MARGIN_MS plus its own, its track’s and every later lookahead
on its track’s longest path short of the master’s before its start (clamped at zero) to its
end, both ends inclusive, so a clip ending where another starts overlaps it. A clip whose
audio read time-stretches (crate::Clip::stretches_audio) counts one effect more.
A project whose routing does not resolve counts no edge.
Fields§
§effects: usizeThe most effects holding state at once.
effects_at_ticks: i64The earliest timeline position, in ticks, at which effects hold state.
delay_ticks: u64The most delay held at once, in ticks (120 per millisecond), summed from each effect’s
AudioEffect::delay_ticks.
delay_at_ticks: i64The earliest timeline position, in ticks, at which delay_ticks is held.
Implementations§
Source§impl AudioEffectLoad
impl AudioEffectLoad
Sourcepub fn delay_ms(&self) -> u64
pub fn delay_ms(&self) -> u64
Self::delay_ticks in milliseconds, rounded up.