6#include "plugins/plugin.h"
8namespace zrythm::plugins
33 QObject * parent =
nullptr);
39 void save_state (std::optional<fs::path> abs_state_dir)
override;
40 void load_state (std::optional<fs::path> abs_state_dir)
override;
42 void prepare_for_processing_impl (
void load_state(std::optional< fs::path > abs_state_dir) override
Load the state from the default directory or from abs_state_dir if given.
InternalPluginBase(dsp::ProcessorBase::ProcessorBaseDependencies dependencies, StateDirectoryParentPathProvider state_path_provider, QObject *parent=nullptr)
Constructor for InternalPluginBase.
void save_state(std::optional< fs::path > abs_state_dir) override
Saves the state inside the standard state directory.
Plugin(ProcessorBaseDependencies dependencies, StateDirectoryParentPathProvider state_path_provider, QObject *parent)
Creates/initializes a plugin and its internal plugin (LV2, etc.) using the given setting.
std::function< fs::path()> StateDirectoryParentPathProvider
Returns the parent path where the plugin should save its state directory in (or load it).
uint32_t sample_rate_t
Sample rate.
uint32_t nframes_t
Frame count.
Common struct to pass around during processing to avoid repeating the data in function arguments.