diff options
author | Robin Gareus <robin@gareus.org> | 2015-02-28 08:04:14 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-02-28 08:04:14 +0100 |
commit | 3c3586a4e1d362e0ce3b0c877e83911cd89383a9 (patch) | |
tree | 5268878c602b7799fcd117cf8953e5858a69ad52 | |
parent | 60c39849cf70aedff3797d5d81921ed16d8cf43a (diff) |
AU presets: allow to save & directly use.
-rw-r--r-- | gtk2_ardour/au_pluginui.mm | 7 | ||||
-rw-r--r-- | libs/ardour/audio_unit.cc | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/au_pluginui.mm b/gtk2_ardour/au_pluginui.mm index 2dc468e500..2a4ab747d4 100644 --- a/gtk2_ardour/au_pluginui.mm +++ b/gtk2_ardour/au_pluginui.mm @@ -153,8 +153,15 @@ AUPluginUI::AUPluginUI (boost::shared_ptr<PluginInsert> insert) smaller_hbox->set_spacing (6); smaller_hbox->pack_start (preset_label, false, false, 4); + smaller_hbox->pack_start (_preset_modified, false, false); smaller_hbox->pack_start (_preset_combo, false, false); + smaller_hbox->pack_start (add_button, false, false); +#if 0 + /* Ardour does not currently allow to overwrite existing presets + * see save_property_list() in audio_unit.cc + */ smaller_hbox->pack_start (save_button, false, false); +#endif #if 0 /* one day these might be useful with an AU plugin, but not yet */ smaller_hbox->pack_start (automation_mode_label, false, false); diff --git a/libs/ardour/audio_unit.cc b/libs/ardour/audio_unit.cc index cdc21a33ac..0455ca893d 100644 --- a/libs/ardour/audio_unit.cc +++ b/libs/ardour/audio_unit.cc @@ -1897,6 +1897,8 @@ AUPlugin::do_save_preset (string preset_name) CFRelease(propertyList); + user_preset_map[preset_name] = user_preset_path;; + return string ("file:///") + user_preset_path; } |