mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Create ComponentInterface
It combines the old IdentInterface with the ParamsInterface, providing an identifier and parameters (if needed). The main purpose of the change is to make the class hierarchy (as viewed via doxygen) much easier to follow.
This commit is contained in:
@@ -552,7 +552,7 @@ bool ModuleManager::RegisterEffectPlugin(const PluginID & providerID, const wxSt
|
||||
return nFound > 0;
|
||||
}
|
||||
|
||||
IdentInterface *ModuleManager::CreateProviderInstance(const PluginID & providerID,
|
||||
ComponentInterface *ModuleManager::CreateProviderInstance(const PluginID & providerID,
|
||||
const wxString & path)
|
||||
{
|
||||
if (path.IsEmpty() && mDynModules.find(providerID) != mDynModules.end())
|
||||
@@ -563,7 +563,7 @@ IdentInterface *ModuleManager::CreateProviderInstance(const PluginID & providerI
|
||||
return LoadModule(path);
|
||||
}
|
||||
|
||||
IdentInterface *ModuleManager::CreateInstance(const PluginID & providerID,
|
||||
ComponentInterface *ModuleManager::CreateInstance(const PluginID & providerID,
|
||||
const wxString & path)
|
||||
{
|
||||
if (mDynModules.find(providerID) == mDynModules.end())
|
||||
@@ -575,7 +575,7 @@ IdentInterface *ModuleManager::CreateInstance(const PluginID & providerID,
|
||||
}
|
||||
|
||||
void ModuleManager::DeleteInstance(const PluginID & providerID,
|
||||
IdentInterface *instance)
|
||||
ComponentInterface *instance)
|
||||
{
|
||||
if (mDynModules.find(providerID) == mDynModules.end())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user