1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-02 17:09:26 +02:00

Handle effect type of none...happens with no ins or out

This commit is contained in:
lllucius@gmail.com 2014-12-08 18:12:56 +00:00
parent 85e0cc9785
commit 182091cb58

View File

@ -1058,6 +1058,7 @@ void PluginDescriptor::SetImporterExtensions(const wxArrayString & extensions)
#define KEY_EFFECTINTERACTIVE wxT("EffectInteractive")
#define KEY_EFFECTREALTIME wxT("EffectRealtime")
#define KEY_EFFECTAUTOMATABLE wxT("EffectAutomatable")
#define KEY_EFFECTTYPE_NONE wxT("None")
#define KEY_EFFECTTYPE_ANALYZE wxT("Analyze")
#define KEY_EFFECTTYPE_GENERATE wxT("Generate")
#define KEY_EFFECTTYPE_PROCESS wxT("Process")
@ -1531,7 +1532,11 @@ void PluginManager::LoadGroup(const wxChar * group, PluginType type)
continue;
}
if (strVal.IsSameAs(KEY_EFFECTTYPE_ANALYZE))
if (strVal.IsSameAs(KEY_EFFECTTYPE_NONE))
{
plug.SetEffectType(EffectTypeNone);
}
else if (strVal.IsSameAs(KEY_EFFECTTYPE_ANALYZE))
{
plug.SetEffectType(EffectTypeAnalyze);
}
@ -1688,7 +1693,11 @@ void PluginManager::SaveGroup(const wxChar *group, PluginType type)
{
EffectType etype = plug.GetEffectType();
wxString stype;
if (etype == EffectTypeAnalyze)
if (etype == EffectTypeNone)
{
stype = KEY_EFFECTTYPE_NONE;
}
else if (etype == EffectTypeAnalyze)
{
stype = KEY_EFFECTTYPE_ANALYZE;
}