28 std::shared_ptr<VST3::Hosting::Module> module,
29 VST3::Hosting::ClassInfo effectClassInfo)
30 : mModule(
std::move(module)), mEffectClassInfo(
std::move(effectClassInfo))
62 using namespace Steinberg::Vst::PlugType;
67 if(std::find(cats.begin(), cats.end(), kFx) != cats.end())
175 wrapper->InitializeComponents();
176 wrapper->LoadPreset(
id);
std::optional< std::unique_ptr< EffectSettingsAccess::Message > > OptionalMessage
wxString PluginPath
type alias for identifying a Plugin supplied by a module, each module defining its own interpretation...
std::vector< RegistryPath > RegistryPaths
static Settings & settings()
CommandParameters, derived from wxFileConfig, is essentially doing the same things as the SettingsVis...
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
RealtimeSince
In which versions of Audacity was an effect realtime capable?
Holds a msgid for the translation catalog; may also bind format arguments.
bool SupportsAutomation() const override
Whether the effect has any automatable controls.
bool CopySettingsContents(const EffectSettings &src, EffectSettings &dst) const override
Update one settings object from another.
OptionalMessage LoadUserPreset(const RegistryPath &name, EffectSettings &settings) const override
TranslatableString GetDescription() const override
void LoadPreset(const wxString &id, EffectSettings &settings) const
const VST3::Hosting::ClassInfo mEffectClassInfo
bool CanExportPresets() const override
Whether the effect supports export of presets to files, and importing too.
std::shared_ptr< VST3::Hosting::Module > mModule
ComponentInterfaceSymbol GetSymbol() const override
std::shared_ptr< EffectInstance > MakeInstance() const override
Make an object maintaining short-term state of an Effect.
bool HasOptions() const override
EffectType GetType() const override
Type determines how it behaves.
VST3EffectBase(std::shared_ptr< VST3::Hosting::Module > module, VST3::Hosting::ClassInfo effectClassInfo)
bool SaveUserPreset(const RegistryPath &name, const EffectSettings &settings) const override
Save settings in the configuration file as a user-named preset.
EffectFamilySymbol GetFamily() const override
Report identifier and user-visible name of the effect protocol.
RealtimeSince RealtimeSupport() const override
Since which version of Audacity has the effect supported realtime?
wxString GetVersion() const override
RegistryPaths GetFactoryPresets() const override
Report names of factory presets.
VendorSymbol GetVendor() const override
~VST3EffectBase() override
bool IsInteractive() const override
Whether the effect needs a dialog for entry of settings.
std::vector< wxString > mFactoryPresetIDs
bool LoadSettings(const CommandParameters &parms, EffectSettings &settings) const override
Restore settings from keys and values.
OptionalMessage LoadFactoryPreset(int id, EffectSettings &settings) const override
static EffectFamilySymbol GetFamilySymbol()
EffectSettings MakeSettings() const override
bool mRescanFactoryPresets
PluginPath GetPath() const override
bool IsDefault() const override
Whether the effect sorts "above the line" in the menus.
RegistryPaths mFactoryPresetNames
bool SaveSettings(const EffectSettings &settings, CommandParameters &parms) const override
Store settings as keys and values.
static wxString MakePluginPathString(const wxString &modulePath, const std::string &effectUIDString)
static EffectSettings MakeSettings()
void LoadPreset(const wxString &presetId)
static void SaveUserPreset(const EffectDefinitionInterface &effect, const RegistryPath &name, const EffectSettings &settings)
static void SaveSettings(const EffectSettings &settings, CommandParameters &parms)
std::vector< FactoryPresetDesc > FindFactoryPresets() const
static void CopySettingsContents(const EffectSettings &src, EffectSettings &dst)
void InitializeComponents()
Should be called once before almost any other method call.
void StoreSettings(EffectSettings &) const
Saves current state inside settings object, clears all runtime data.
static void LoadSettings(const CommandParameters &parms, EffectSettings &settings)
void FlushParameters(EffectSettings &settings, bool *hasChanges=nullptr)
static OptionalMessage LoadUserPreset(const EffectDefinitionInterface &effect, const RegistryPath &name, EffectSettings &settings)
const TranslatableString desc
Externalized state of a plug-in.