1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +02:00

ModuleInterface::RegisterPlugin can report an error message

This commit is contained in:
Paul Licameli
2017-12-27 10:40:38 -05:00
parent f3a05540b0
commit 0f8bd45a7c
18 changed files with 75 additions and 23 deletions

View File

@@ -171,8 +171,11 @@ wxArrayString AudioUnitEffectsModule::FindPlugins(PluginManagerInterface & pm)
return effects;
}
bool AudioUnitEffectsModule::RegisterPlugin(PluginManagerInterface & pm, const wxString & path)
bool AudioUnitEffectsModule::RegisterPlugin(PluginManagerInterface & pm,
const wxString & path,
wxString &errMsg)
{
errMsg.clear();
wxString name;
AudioComponent component = FindAudioUnit(path, name);
if (component == NULL)

View File

@@ -245,7 +245,8 @@ public:
bool AutoRegisterPlugins(PluginManagerInterface & pm) override;
wxArrayString FindPlugins(PluginManagerInterface & pm) override;
bool RegisterPlugin(PluginManagerInterface & pm, const wxString & path) override;
bool RegisterPlugin(PluginManagerInterface & pm,
const wxString & path, wxString &errMsg) override;
bool IsPluginValid(const wxString & path, bool bFast) override;