pub struct RestartFlags(/* private fields */);Expand description
What a plugin asked the host to re-read, reported through IComponentHandler::restartComponent
and drained with Plugin::take_restart_flags.
A plugin raises these when something about it changed behind the host’s back — a preset load
that renamed its parameters, a mode switch that changed its latency, an oversampling toggle
that changed its bus layout. Poll this alongside Plugin::take_parameter_edits and respond
directly, or use Plugin::service_host_requests for lifecycle-sensitive changes:
param_values_changed— re-read values withPlugin::get_parameters.param_titles_changed— re-read the parameter list itself (ids, names, ranges may all differ).latency_changed— re-readPlugin::latency_samplesand adjust delay compensation. Requires stopping processing first, per the VST3 spec.io_changed— the bus layout changed; re-queryPlugin::bus_arrangementsand reconfigure. Nothing is rebuilt for you.
Implementations§
Source§impl RestartFlags
impl RestartFlags
Sourcepub fn bits(self) -> i32
pub fn bits(self) -> i32
The raw VST3 bitmask (Steinberg::Vst::RestartFlags), for flags this type doesn’t name.
Sourcepub fn param_values_changed(self) -> bool
pub fn param_values_changed(self) -> bool
kParamValuesChanged: parameter values changed (e.g. a preset was loaded).
Sourcepub fn reload_component(self) -> bool
pub fn reload_component(self) -> bool
kReloadComponent: the component must be recreated by the outer host.
Sourcepub fn param_titles_changed(self) -> bool
pub fn param_titles_changed(self) -> bool
kParamTitlesChanged: the parameter list itself changed (ids, names, ranges, count).
Sourcepub fn latency_changed(self) -> bool
pub fn latency_changed(self) -> bool
kLatencyChanged: the plugin’s reported latency changed.
Sourcepub fn io_changed(self) -> bool
pub fn io_changed(self) -> bool
kIoChanged: the plugin’s bus configuration changed.
Sourcepub fn midi_cc_assignment_changed(self) -> bool
pub fn midi_cc_assignment_changed(self) -> bool
kMidiCCAssignmentChanged: controller-to-parameter mappings changed.
Sourcepub fn note_expression_changed(self) -> bool
pub fn note_expression_changed(self) -> bool
kNoteExpressionChanged: note-expression metadata changed.
Sourcepub fn io_titles_changed(self) -> bool
pub fn io_titles_changed(self) -> bool
kIoTitlesChanged: bus names changed.
Sourcepub fn prefetchable_support_changed(self) -> bool
pub fn prefetchable_support_changed(self) -> bool
kPrefetchableSupportChanged: prefetch support changed.
Sourcepub fn routing_info_changed(self) -> bool
pub fn routing_info_changed(self) -> bool
kRoutingInfoChanged: routing metadata changed.
Sourcepub fn keyswitch_changed(self) -> bool
pub fn keyswitch_changed(self) -> bool
kKeyswitchChanged: keyswitch metadata changed.
Sourcepub fn param_id_mapping_changed(self) -> bool
pub fn param_id_mapping_changed(self) -> bool
kParamIDMappingChanged: processor/controller parameter-id mappings changed.
Trait Implementations§
Source§impl Clone for RestartFlags
impl Clone for RestartFlags
Source§fn clone(&self) -> RestartFlags
fn clone(&self) -> RestartFlags
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more