From 7e766be2cbe159a9d584009e0982a8fdb65c863b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 20 Jan 2017 00:50:29 +0100 Subject: [PATCH] Add a note. --- libs/ardour/audio_unit.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/audio_unit.cc b/libs/ardour/audio_unit.cc index 4bc8cdaf3b..c60c12b8b6 100644 --- a/libs/ardour/audio_unit.cc +++ b/libs/ardour/audio_unit.cc @@ -2558,7 +2558,9 @@ AUPlugin::find_presets () /* add factory presets */ for (FactoryPresetMap::iterator i = factory_preset_map.begin(); i != factory_preset_map.end(); ++i) { - /* XXX: dubious */ + /* XXX: dubious -- deleting & re-adding a preset -> same URI + * good that we don't support deleting AU presets :) + */ string const uri = string_compose ("%1", _presets.size ()); _presets.insert (make_pair (uri, Plugin::PresetRecord (uri, i->first, false))); DEBUG_TRACE (DEBUG::AudioUnits, string_compose("AU Adding Factory Preset: %1 > %2\n", i->first, i->second));