summaryrefslogtreecommitdiff
path: root/libs/ardour/windows_vst_plugin.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-01-09 15:22:16 +0100
committerRobin Gareus <robin@gareus.org>2016-01-09 15:22:16 +0100
commite6e7377cd8596f8ed8b5d39634e550a05995999b (patch)
tree88351b0e9b0325e446805be31156899d48985a2e /libs/ardour/windows_vst_plugin.cc
parent3710a977fc396bfd279634b7fd7329a5eeeda028 (diff)
API evolution
The Session-reference is only needed to instantiate/load the plugin. Indexing presets is not supposed to call load() and be const WRT to PluginInfo
Diffstat (limited to 'libs/ardour/windows_vst_plugin.cc')
-rw-r--r--libs/ardour/windows_vst_plugin.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/windows_vst_plugin.cc b/libs/ardour/windows_vst_plugin.cc
index 46097e7feb..a480642e3a 100644
--- a/libs/ardour/windows_vst_plugin.cc
+++ b/libs/ardour/windows_vst_plugin.cc
@@ -95,7 +95,7 @@ WindowsVSTPluginInfo::load (Session& session)
}
std::vector<Plugin::PresetRecord>
-WindowsVSTPluginInfo::get_presets(Session&)
+WindowsVSTPluginInfo::get_presets (bool user_only) const
{
std::vector<Plugin::PresetRecord> p;
#ifndef NO_PLUGIN_STATE
@@ -103,7 +103,9 @@ WindowsVSTPluginInfo::get_presets(Session&)
return p;
}
- // TODO cache and load factory-preset names
+ if (!user_only) {
+ // TODO cache and load factory-preset names
+ }
/* user presets */
XMLTree* t = new XMLTree;