1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-04 21:50:51 +01:00

Another round of effects bashing.

I've added some of the new plugin stuff to LV2, Nyquist, and
Vamp so that they play better in the new system.  They no
longer get bunched in with the Audacity effects when sorting
or grouping the menus.  They have not been fully converted
but they should be good for 2.1.0.

Nyquist plugins now include ";author" and ";copyright"
statements.

Added the 4 new Nyquist plugins to the Windows build.

Audiounits are still coming...had to push them to the back
burner to get this other stuff out of the way.

Scanning for new plugins has been improved so that newly
discovered ones will be shown to the user when Audacity starts.

Effects menu sorting has been fixed and improved.

Disabling effect types in Preferences works again and you
no longer have to restart Audacity for them the change to work.

Effect usage in chains works again.

Plugin registration dialog code simplified a bit.

Group names in the pluginregistry are now base64 encoded.  I
never really thought about it, but wxFileConfig group names
are case insensitive and since I was using the group name as
the plugin ID, I ran into a conflict on Linux where there
were two plugins with the same name, just different case.  (And
they were different plugins.)  Hoping all of this will change
when/if the config file gets converted to XML.  (wx3 if finally
including XML support)

A fair amount of cleanup of this new code has been done and
will continue as more stuff is converted.
This commit is contained in:
lllucius
2014-11-19 06:58:44 +00:00
parent 393109afa3
commit 41083f74cc
60 changed files with 2163 additions and 1011 deletions

View File

@@ -92,8 +92,6 @@ void EffectsPrefs::PopulateOrExchange(ShuttleGui & S)
wxT("/VST/Enable"),
true);
#endif
S.AddFixedText(_("Restart Audacity to apply changes."));
}
S.EndStatic();
@@ -106,13 +104,15 @@ void EffectsPrefs::PopulateOrExchange(ShuttleGui & S)
visualgroups.Add(_("Sorted by Effect Name"));
visualgroups.Add(_("Sorted by Publisher and Effect Name"));
visualgroups.Add(_("Sorted by Type and Effect Name"));
visualgroups.Add(_("Grouped by Publisher"));
visualgroups.Add(_("Grouped by Type (Ladspa, VST, etc.)"));
visualgroups.Add(_("Grouped by Type"));
prefsgroups.Add(wxT("name"));
prefsgroups.Add(wxT("publisher:name"));
prefsgroups.Add(wxT("publisher"));
prefsgroups.Add(wxT("family"));
prefsgroups.Add(wxT("sortby:name"));
prefsgroups.Add(wxT("sortby:publisher:name"));
prefsgroups.Add(wxT("sortby:type:name"));
prefsgroups.Add(wxT("groupby:publisher"));
prefsgroups.Add(wxT("groupby:type"));
wxChoice *c = S.TieChoice(_("Effects in menus are:"),
wxT("/Effects/GroupBy"),
@@ -158,43 +158,10 @@ void EffectsPrefs::PopulateOrExchange(ShuttleGui & S)
#endif
}
void EffectsPrefs::SetState(const wxString & family, const wxString & key)
{
PluginManager & pm = PluginManager::Get();
bool state = gPrefs->Read(wxT("/Nyquist/Enable"), true);
const PluginDescriptor *plug = pm.GetFirstPluginForEffectFamily(family);
while (plug)
{
pm.EnablePlugin(plug->GetID(), state);
plug = pm.GetNextPluginForEffectFamily(family);
}
}
bool EffectsPrefs::Apply()
{
ShuttleGui S(this, eIsSavingToPrefs);
PopulateOrExchange(S);
#ifdef USE_NYQUIST
SetState(wxT("Nyquist"), wxT("/Nyquist/Enable"));
#endif
#ifdef USE_LADSPA
SetState(wxT("Ladspa"), wxT("/Ladspa/Enable"));
#endif
#ifdef USE_LV2
SetState(wxT("LV2"), wxT("/LV2/Enable"));
#endif
#ifdef USE_AUDIO_UNITS
SetState(wxT("AudioUnit"), wxT("/AudioUnits/Enable"));
#endif
#ifdef USE_VAMP
SetState(wxT("VAMP"), wxT("/VAMP/Enable"));
#endif
return true;
}

View File

@@ -32,7 +32,6 @@ class EffectsPrefs:public PrefsPanel
private:
void Populate();
void PopulateOrExchange(ShuttleGui & S);
void SetState(const wxString & family, const wxString & key);
};
#endif