diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-03-27 18:38:02 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-03-27 18:38:02 +0000 |
commit | 75119176e300f559e1a080b5127b85dff4947d36 (patch) | |
tree | 848e8dd29cf07f664314a21d82a87525d505649f /libs/ardour | |
parent | 95114e89ad81e83f56fa5449bc8ead2f7f45eca1 (diff) |
some totally untested FST/VST changes
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4916 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/vst_plugin.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/ardour/vst_plugin.cc b/libs/ardour/vst_plugin.cc index e4e623c356..eb067d6c5a 100644 --- a/libs/ardour/vst_plugin.cc +++ b/libs/ardour/vst_plugin.cc @@ -222,7 +222,11 @@ VSTPlugin::set_state(const XMLNode& node) } } + _fst->current_program = _plugin->dispatcher (_plugin, 3, /* effGetProgram */, 0, NULL, NULL, 0); + cerr << name() << ": current program is " << _fst->current_program << endl; + return 0; + } else if ((child = find_named_node (node, X_("parameters"))) != 0) { XMLPropertyList::const_iterator i; @@ -238,9 +242,15 @@ VSTPlugin::set_state(const XMLNode& node) _plugin->setParameter (_plugin, param, val); } + /* program number is not knowable */ + + _fst->current_program = -1; + return 0; } + + return -1; } |