This class provides the core functionality for managing a plugin, including creating/initializing the plugin, connecting and disconnecting its ports, activating and deactivating it, and managing its state and UI.
More...
|
PluginDescriptor & | get_descriptor () |
utils::Utf8String | get_name () const |
Protocol::ProtocolType | get_protocol () const |
auto | get_input_port_span () const |
auto | get_output_port_span () const |
void | set_setting (const PluginConfiguration &setting) |
| Sets the plugin setting to use.
|
void | init_loaded () |
| Initializes a plugin after deserialization.
|
utils::Utf8String | get_full_designation_for_port (const dsp::Port &port) const |
bool | is_auditioner () const |
| Whether the plugin is used for MIDI auditioning in SampleProcessor.
|
void | set_ui_refresh_rate () |
| Sets the UI refresh rate on the Plugin.
|
dsp::ProcessorParameter * | get_enabled_param () const |
| Gets the enable/disable port for this plugin.
|
void | remove_ats_from_automation_tracklist (bool free_ats, bool fire_events) |
| Removes the automation tracks associated with this plugin from the automation tracklist in the corresponding track.
|
utils::Utf8String | get_full_port_group_designation (const utils::Utf8String &port_group) const |
dsp::Port * | get_port_in_same_group (const dsp::Port &port) |
| Finds the corresponding port in the same port group (eg, if this is left, find right and vice versa).
|
void | activate (bool activate=true) |
| Activates or deactivates the plugin.
|
auto | get_slot_type () const |
void | append_ports (std::vector< dsp::Port * > &ports) |
| Appends this plugin's ports to the given vector.
|
std::optional< dsp::PortPtrVariant > | get_port_by_symbol (const utils::Utf8String &sym) |
| Gets a port by its symbol.
|
void | copy_state_dir (const Plugin &src, bool is_backup, std::optional< fs::path > abs_state_dir) |
| Copies the state directory from the given source plugin to this plugin's state directory.
|
fs::path | get_abs_state_dir (bool is_backup, bool create_if_not_exists) |
| Returns the state dir as an absolute path.
|
fs::path | get_abs_state_dir (bool is_backup) const |
| Simply gets the absolute state directory path, without attempting to create it.
|
void | ensure_state_dir (bool is_backup) |
| Ensures the state dir exists or creates it.
|
std::optional< TrackPtrVariant > | get_track () const |
void | set_track (const TrackUuid &track_id) |
TrackUuid | get_track_id () const |
bool | has_track () const |
void | prepare_process (std::size_t block_length) |
| Updates the plugin's latency.
|
void | copy_members_from (Plugin &other) |
void | instantiate () |
| Instantiates the plugin (e.g.
|
auto | get_slot () const -> std::optional< PluginSlot > |
| Returns the slot this number is inserted at in the owner.
|
void | process_block (EngineProcessTimeInfo time_nfo) override |
| Process plugin.
|
utils::Utf8String | get_node_name () const override |
| Returns a human friendly name of the node.
|
utils::Utf8String | generate_window_title () const |
void | open_ui () |
| Process show ui.
|
bool | is_selected () const |
void | set_selected (bool selected) |
bool | is_enabled (bool check_track) const |
| Returns whether the plugin is enabled.
|
void | set_enabled (bool enabled, bool fire_events) |
void | process_passthrough (EngineProcessTimeInfo time_nfo) |
| Processes the plugin by passing through the input to its output.
|
void | close_ui () |
| Process hide ui.
|
void | update_automatables () |
| (re)Generates automatables for the plugin.
|
void | set_selected_bank_from_index (int idx) |
void | set_selected_preset_from_index (int idx) |
void | set_selected_preset_by_name (const utils::Utf8String &name) |
void | set_caches () |
| Sets caches for processing.
|
void | connect_to_plugin (Plugin &dest) |
| Connect the output Ports of the given source Plugin to the input Ports of the given destination Plugin.
|
void | disconnect_from_plugin (Plugin &dest) |
| Disconnect the automatic connections from the given source Plugin to the given destination Plugin.
|
void | delete_state_files () |
| Deletes any state files associated with this plugin.
|
void | cleanup () |
| Cleans up resources of an instantiated but not activated plugin.
|
virtual nframes_t | get_single_playback_latency () const |
| Returns the latency of only the given processable, without adding the previous/next latencies.
|
virtual void | prepare_for_processing (sample_rate_t sample_rate, nframes_t max_block_length) |
| Called to allocate resources required for processing.
|
virtual void | release_resources () |
| Called to release resources allocated by prepare_for_processing().
|
UuidIdentifiableObject & | operator= (const UuidIdentifiableObject &other)=default |
auto | get_uuid () const |
This class provides the core functionality for managing a plugin, including creating/initializing the plugin, connecting and disconnecting its ports, activating and deactivating it, and managing its state and UI.
The plugin can be of various types, such as LV2, Carla native, etc., and this class provides a common interface for working with them.
Definition at line 42 of file plugin.h.