summaryrefslogtreecommitdiff
path: root/libs/ardour/vst_plugin.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-11-23 19:29:55 +0000
committerCarl Hetherington <carl@carlh.net>2011-11-23 19:29:55 +0000
commit9040712ab9a050d0f52eeb5a1c91f7e30cb662a3 (patch)
tree4874b6286b30fedb14de9f81b110a9667be6a82a /libs/ardour/vst_plugin.cc
parente8ee8593c7b5c3d801d63cbd955e9b6c1c35bdcd (diff)
Don't load program 0 on initialising a VST; I don't
think we do that for any other plugins. Restore chunk-based preset loading for Linux VSTs. git-svn-id: svn://localhost/ardour2/branches/3.0@10805 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/vst_plugin.cc')
-rw-r--r--libs/ardour/vst_plugin.cc11
1 files changed, 3 insertions, 8 deletions
diff --git a/libs/ardour/vst_plugin.cc b/libs/ardour/vst_plugin.cc
index 130c43ede6..2d1a24ae93 100644
--- a/libs/ardour/vst_plugin.cc
+++ b/libs/ardour/vst_plugin.cc
@@ -56,10 +56,6 @@ VSTPlugin::set_plugin (AEffect* e)
_plugin->dispatcher (_plugin, effSetSampleRate, 0, 0, NULL, (float) _session.frame_rate());
_plugin->dispatcher (_plugin, effSetBlockSize, 0, _session.get_block_size(), NULL, 0.0f);
-
- /* set program to zero */
-
- _plugin->dispatcher (_plugin, effSetProgram, 0, 0, NULL, 0.0f);
}
void
@@ -385,8 +381,8 @@ VSTPlugin::load_user_preset (PresetRecord r)
return false;
- }
- else {
+ } else {
+
for (XMLNodeList::const_iterator j = (*i)->children().begin(); j != (*i)->children().end(); ++j) {
if ((*j)->name() == X_("Parameter")) {
XMLProperty* index = (*j)->property (X_("index"));
@@ -425,8 +421,7 @@ VSTPlugin::do_save_preset (string name)
p->add_content (string (data));
g_free (data);
- }
- else {
+ } else {
p = new XMLNode (X_("Preset"));
p->add_property (X_("uri"), uri);