91 return XO(
"Builtin Effects");
96 return XO(
"The Audacity Team");
102 return AUDACITY_VERSION_STRING;
107 return XO(
"Provides builtin effects to Audacity");
148 const auto &path = pair.first;
151 if ( pair.second->excluded )
165 names.push_back( pair.first );
179 callback(
this, effect.get());
183 errMsg =
XO(
"Unknown built-in effect name");
190 static_cast<void>(bFast);
194std::unique_ptr<ComponentInterface>
210 return iter->second->factory();
const TranslatableString name
#define BUILTIN_EFFECT_PREFIX
std::vector< PluginPath > PluginPaths
wxString PluginPath
type alias for identifying a Plugin supplied by a module, each module defining its own interpretation...
DECLARE_PROVIDER_ENTRY(AudacityModule)
DECLARE_BUILTIN_PROVIDER(BuiltinsEffectBuiltin)
static ProjectFileIORegistry::AttributeWriterEntry entry
Internal module to auto register all built in effects.
ComponentInterfaceSymbol GetSymbol() const override
void Terminate() override
Called just prior to deletion to allow releasing any resources.
PluginPath GetPath() const override
bool Initialize() override
Called immediately after creation. Let provider initialize.
std::function< std::unique_ptr< Effect >() > Factory
VendorSymbol GetVendor() const override
TranslatableString GetDescription() const override
unsigned DiscoverPluginsAtPath(const PluginPath &path, TranslatableString &errMsg, const RegistrationCallback &callback) override
bool IsPluginValid(const PluginPath &path, bool bFast) override
static void DoRegistration(const ComponentInterfaceSymbol &name, const Factory &factory, bool excluded)
EffectFamilySymbol GetOptionalFamilySymbol() override
A symbol identifying the family of plug-ins provided by this.
PluginPaths FindModulePaths(PluginManagerInterface &pm) override
void AutoRegisterPlugins(PluginManagerInterface &pm) override
Called so that a provider of a static set of plug-ins can register them.
virtual ~BuiltinEffectsModule()
const FileExtensions & GetFileExtensions() override
File types associated with this protocol.
std::unique_ptr< ComponentInterface > LoadPlugin(const PluginPath &path) override
Load the plug-in at a path reported by DiscoverPluginsAtPath.
std::unique_ptr< Effect > Instantiate(const PluginPath &path)
wxString GetVersion() const override
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
virtual bool IsPluginRegistered(const PluginPath &path, const TranslatableString *pName=nullptr)=0
Was the plugin registry already populated for a path (maybe from loading the config file)?
static const PluginID & DefaultRegistrationCallback(PluginProvider *provider, ComponentInterface *ident)
std::function< const PluginID &(PluginProvider *, ComponentInterface *) > RegistrationCallback
Further expand a path reported by FindModulePaths.
Holds a msgid for the translation catalog; may also bind format arguments.
Extend wxArrayString with move operations and construction and insertion fromstd::initializer_list.
ComponentInterfaceSymbol name
BuiltinEffectsModule::Factory factory
std::vector< Entry > Entries
static Entries & Registry()