mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02: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:
@@ -103,7 +103,7 @@ AudioUnitEffectsModule::~AudioUnitEffectsModule()
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// IdentInterface implementation
|
||||
// ComponentInterface implementation
|
||||
// ============================================================================
|
||||
|
||||
wxString AudioUnitEffectsModule::GetPath()
|
||||
@@ -111,13 +111,13 @@ wxString AudioUnitEffectsModule::GetPath()
|
||||
return mPath;
|
||||
}
|
||||
|
||||
IdentInterfaceSymbol AudioUnitEffectsModule::GetSymbol()
|
||||
ComponentInterfaceSymbol AudioUnitEffectsModule::GetSymbol()
|
||||
{
|
||||
/* 18n-hint: Audio Unit is the name of an Apple audio software protocol */
|
||||
return XO("Audio Unit Effects");
|
||||
}
|
||||
|
||||
IdentInterfaceSymbol AudioUnitEffectsModule::GetVendor()
|
||||
ComponentInterfaceSymbol AudioUnitEffectsModule::GetVendor()
|
||||
{
|
||||
return XO("The Audacity Team");
|
||||
}
|
||||
@@ -212,7 +212,7 @@ bool AudioUnitEffectsModule::IsPluginValid(
|
||||
return FindAudioUnit(path, name) != NULL;
|
||||
}
|
||||
|
||||
IdentInterface *AudioUnitEffectsModule::CreateInstance(const wxString & path)
|
||||
ComponentInterface *AudioUnitEffectsModule::CreateInstance(const wxString & path)
|
||||
{
|
||||
// Acquires a resource for the application.
|
||||
wxString name;
|
||||
@@ -226,7 +226,7 @@ IdentInterface *AudioUnitEffectsModule::CreateInstance(const wxString & path)
|
||||
return safenew AudioUnitEffect(path, name, component);
|
||||
}
|
||||
|
||||
void AudioUnitEffectsModule::DeleteInstance(IdentInterface *instance)
|
||||
void AudioUnitEffectsModule::DeleteInstance(ComponentInterface *instance)
|
||||
{
|
||||
std::unique_ptr < AudioUnitEffect > {
|
||||
dynamic_cast<AudioUnitEffect *>(instance)
|
||||
@@ -872,7 +872,7 @@ AudioUnitEffect::~AudioUnitEffect()
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// IdentInterface implementation
|
||||
// ComponentInterface implementation
|
||||
// ============================================================================
|
||||
|
||||
wxString AudioUnitEffect::GetPath()
|
||||
@@ -880,12 +880,12 @@ wxString AudioUnitEffect::GetPath()
|
||||
return mPath;
|
||||
}
|
||||
|
||||
IdentInterfaceSymbol AudioUnitEffect::GetSymbol()
|
||||
ComponentInterfaceSymbol AudioUnitEffect::GetSymbol()
|
||||
{
|
||||
return mName;
|
||||
}
|
||||
|
||||
IdentInterfaceSymbol AudioUnitEffect::GetVendor()
|
||||
ComponentInterfaceSymbol AudioUnitEffect::GetVendor()
|
||||
{
|
||||
return { mVendor };
|
||||
}
|
||||
@@ -909,7 +909,7 @@ wxString AudioUnitEffect::GetDescription()
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// EffectIdentInterface implementation
|
||||
// EffectComponentInterface implementation
|
||||
// ============================================================================
|
||||
|
||||
EffectType AudioUnitEffect::GetType()
|
||||
@@ -932,7 +932,7 @@ EffectType AudioUnitEffect::GetType()
|
||||
return EffectTypeProcess;
|
||||
}
|
||||
|
||||
IdentInterfaceSymbol AudioUnitEffect::GetFamilyId()
|
||||
ComponentInterfaceSymbol AudioUnitEffect::GetFamilyId()
|
||||
{
|
||||
return AUDIOUNITEFFECTS_FAMILY;
|
||||
}
|
||||
|
@@ -50,18 +50,18 @@ public:
|
||||
AudioUnitEffect *master = NULL);
|
||||
virtual ~AudioUnitEffect();
|
||||
|
||||
// IdentInterface implementation
|
||||
// ComponentInterface implementation
|
||||
|
||||
wxString GetPath() override;
|
||||
IdentInterfaceSymbol GetSymbol() override;
|
||||
IdentInterfaceSymbol GetVendor() override;
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
ComponentInterfaceSymbol GetVendor() override;
|
||||
wxString GetVersion() override;
|
||||
wxString GetDescription() override;
|
||||
|
||||
// EffectIdentInterface implementation
|
||||
// EffectComponentInterface implementation
|
||||
|
||||
EffectType GetType() override;
|
||||
IdentInterfaceSymbol GetFamilyId() override;
|
||||
ComponentInterfaceSymbol GetFamilyId() override;
|
||||
bool IsInteractive() override;
|
||||
bool IsDefault() override;
|
||||
bool IsLegacy() override;
|
||||
@@ -229,11 +229,11 @@ public:
|
||||
AudioUnitEffectsModule(ModuleManagerInterface *moduleManager, const wxString *path);
|
||||
virtual ~AudioUnitEffectsModule();
|
||||
|
||||
// IdentInterface implementation
|
||||
// ComponentInterface implementation
|
||||
|
||||
wxString GetPath() override;
|
||||
IdentInterfaceSymbol GetSymbol() override;
|
||||
IdentInterfaceSymbol GetVendor() override;
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
ComponentInterfaceSymbol GetVendor() override;
|
||||
wxString GetVersion() override;
|
||||
wxString GetDescription() override;
|
||||
|
||||
@@ -254,8 +254,8 @@ public:
|
||||
|
||||
bool IsPluginValid(const wxString & path, bool bFast) override;
|
||||
|
||||
IdentInterface *CreateInstance(const wxString & path) override;
|
||||
void DeleteInstance(IdentInterface *instance) override;
|
||||
ComponentInterface *CreateInstance(const wxString & path) override;
|
||||
void DeleteInstance(ComponentInterface *instance) override;
|
||||
|
||||
// AudioUnitEffectModule implementation
|
||||
|
||||
|
Reference in New Issue
Block a user