1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-09 22:53:55 +01:00

Added 'More...' to Generate and Analyze menus

This commit is contained in:
James Crook
2015-05-14 14:48:36 +01:00
parent 5fd751169f
commit 8ae6fc42e1
15 changed files with 105 additions and 57 deletions

View File

@@ -128,18 +128,14 @@
EFFECT( TRUNCATESILENCE, EffectTruncSilence() ) \
EFFECT( WAHWAH, EffectWahwah() ) \
EFFECT( FINDCLIPPING, EffectFindClipping() ) \
NOISEREDUCTION_EFFECT \
SOUNDTOUCH_EFFECTS
//
// Define the list of effects that do not get autoregistered
//
#define EXCLUDE_LIST \
EFFECT( AUTODUCK, EffectAutoDuck() ) \
EFFECT( LEVELLER, EffectLeveller() ) \
EFFECT( PAULSTRETCH, EffectPaulstretch() ) \
CLASSICFILTER_EFFECT \
SBSMS_EFFECTS
SBSMS_EFFECTS \
NOISEREDUCTION_EFFECT \
SOUNDTOUCH_EFFECTS
//
// Define the EFFECT() macro to generate enum names
@@ -152,7 +148,6 @@
enum
{
EFFECT_LIST
EXCLUDE_LIST
};
//
@@ -169,13 +164,6 @@ static const wxChar *kEffectNames[] =
EFFECT_LIST
};
//
// Create the effect name array of excluded effects
//
static const wxChar *kExcludedNames[] =
{
EXCLUDE_LIST
};
//
// Redefine EFFECT() to generate a case statement for the lookup switch
@@ -269,12 +257,6 @@ bool BuiltinEffectsModule::Initialize()
{
mNames.Add(wxString(BUILTIN_EFFECT_PREFIX) + kEffectNames[i]);
}
for (size_t i = 0; i < WXSIZEOF(kExcludedNames); i++)
{
mNames.Add(wxString(BUILTIN_EFFECT_PREFIX) + kExcludedNames[i]);
}
return true;
}
@@ -349,7 +331,6 @@ Effect *BuiltinEffectsModule::Instantiate(const wxString & path)
switch (mNames.Index(path))
{
EFFECT_LIST;
EXCLUDE_LIST;
}
return NULL;