summaryrefslogtreecommitdiff
path: root/libs/ardour/vst_plugin.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-03-04 15:25:58 +0100
committerRobin Gareus <robin@gareus.org>2014-03-04 15:25:58 +0100
commit912f07b919c1ec44f0cdd5278d74a9bc29b91846 (patch)
tree1cd5f158ada5e8b9b73cf0d52ca5f9fa430c1fe9 /libs/ardour/vst_plugin.cc
parent3e250d5f0649256c8e4c7c53da4f67383dd52f78 (diff)
mingw build fixes (tested with i686-w64-mingw32 on linux-x86_64)
Diffstat (limited to 'libs/ardour/vst_plugin.cc')
-rw-r--r--libs/ardour/vst_plugin.cc22
1 files changed, 0 insertions, 22 deletions
diff --git a/libs/ardour/vst_plugin.cc b/libs/ardour/vst_plugin.cc
index 3ea103a7b7..1eb553c073 100644
--- a/libs/ardour/vst_plugin.cc
+++ b/libs/ardour/vst_plugin.cc
@@ -351,29 +351,7 @@ VSTPlugin::load_plugin_preset (PresetRecord r)
#else
sscanf (r.uri.c_str(), "VST:%d:%d", &id, &index);
#endif
-
-#ifdef PLATFORM_WINDOWS
- int const vst_version = _plugin->dispatcher (_plugin, effGetVstVersion, 0, 0, NULL, 0);
- if (vst_version >= 2) {
- _plugin->dispatcher (_plugin, effBeginSetProgram, 0, 0, NULL, 0);
- }
-
- _plugin->dispatcher (_plugin, effSetProgram, 0, index, NULL, 0);
-
- if (vst_version >= 2) {
- _plugin->dispatcher (_plugin, effEndSetProgram, 0, 0, NULL, 0);
- }
-
- //unfortunately, we don't get any opcodes back from the plugin when this happens (?!)
- //so we have to manually update param values from the plugin to our listeners
- for (int n = 0; n < parameter_count(); n++ ) {
- float p = get_parameter(n); //ask the plugin what its new setting is
- Plugin::set_parameter (which, newval);
- }
-
-#else
_state->want_program = index;
-#endif
return true;
}