mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Improve plugin Ccategory consistency somewhat
This commit is contained in:
parent
159e956225
commit
a199477cf6
3 changed files with 10 additions and 10 deletions
|
|
@ -2901,24 +2901,24 @@ AUPluginInfo::discover_by_description (PluginInfoList& plugs, CAComponentDescrip
|
|||
continue;
|
||||
|
||||
case kAudioUnitType_Output:
|
||||
info->category = _("AudioUnit Outputs");
|
||||
info->category = _("AudioUnit Output");
|
||||
break;
|
||||
case kAudioUnitType_MusicDevice:
|
||||
info->category = _("AudioUnit Instruments");
|
||||
info->category = _("Instrument");
|
||||
has_midi_in = true;
|
||||
break;
|
||||
case kAudioUnitType_MusicEffect:
|
||||
info->category = _("AudioUnit MusicEffects");
|
||||
info->category = _("Music Effect");
|
||||
has_midi_in = true;
|
||||
break;
|
||||
case kAudioUnitType_Effect:
|
||||
info->category = _("AudioUnit Effects");
|
||||
info->category = _("Effect");
|
||||
break;
|
||||
case kAudioUnitType_Mixer:
|
||||
info->category = _("AudioUnit Mixers");
|
||||
info->category = _("Mixer");
|
||||
break;
|
||||
case kAudioUnitType_Generator:
|
||||
info->category = _("AudioUnit Generators");
|
||||
info->category = _("Generator");
|
||||
break;
|
||||
default:
|
||||
info->category = _("AudioUnit (Unknown)");
|
||||
|
|
|
|||
|
|
@ -3356,7 +3356,7 @@ LV2PluginInfo::in_category (const std::string &c) const
|
|||
{
|
||||
// TODO use untranslated lilv_plugin_get_class()
|
||||
// match gtk2_ardour/plugin_selector.cc
|
||||
return category.find(c) != string::npos;
|
||||
return category == c;
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
|
|
@ -649,10 +649,10 @@ vstfx_parse_vst_state (VSTState* vstfx)
|
|||
switch (plugin->dispatcher (plugin, effGetPlugCategory, 0, 0, 0, 0))
|
||||
{
|
||||
case kPlugCategEffect: info->Category = strdup ("Effect"); break;
|
||||
case kPlugCategSynth: info->Category = strdup ("Synth"); break;
|
||||
case kPlugCategAnalysis: info->Category = strdup ("Anaylsis"); break;
|
||||
case kPlugCategSynth: info->Category = strdup ("Instrument"); break;
|
||||
case kPlugCategAnalysis: info->Category = strdup ("Analyser"); break;
|
||||
case kPlugCategMastering: info->Category = strdup ("Mastering"); break;
|
||||
case kPlugCategSpacializer: info->Category = strdup ("Spacializer"); break;
|
||||
case kPlugCategSpacializer: info->Category = strdup ("Spatial"); break;
|
||||
case kPlugCategRoomFx: info->Category = strdup ("RoomFx"); break;
|
||||
case kPlugSurroundFx: info->Category = strdup ("SurroundFx"); break;
|
||||
case kPlugCategRestoration: info->Category = strdup ("Restoration"); break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue