summaryrefslogtreecommitdiff
path: root/libs/fst
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-02-20 02:29:58 +0100
committerRobin Gareus <robin@gareus.org>2014-02-22 03:11:47 +0100
commit348115c0f77cd6bbf56b0cfc640707832c38960d (patch)
tree38a8abe25c1495e9956e5a3cccaee0c47d09b131 /libs/fst
parent156a5a0e5f078901dde7b626bb51f478643a9225 (diff)
add support for VST>=2.4
Diffstat (limited to 'libs/fst')
-rw-r--r--libs/fst/vstwin.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/libs/fst/vstwin.c b/libs/fst/vstwin.c
index 67ae03986e..3cb22adafa 100644
--- a/libs/fst/vstwin.c
+++ b/libs/fst/vstwin.c
@@ -566,7 +566,16 @@ fst_load (const char *path)
return NULL;
}
- if ((fhandle->main_entry = (main_entry_t) GetProcAddress (fhandle->dll, "main")) == NULL) {
+ fhandle->main_entry = (main_entry_t) GetProcAddress (fhandle->dll, "main");
+
+ if (fhandle->main_entry == 0) {
+ if (fhandle->main_entry = (main_entry_t) GetProcAddress (fhandle->dll, "VSTPluginMain") != 0) {
+ fprintf(stderr, "VST >= 2.4 plugin '%s'\n", path);
+ //PBD::warning << path << _(": is a VST >= 2.4 - this plugin may or may not function correctly with this version of Ardour.") << endmsg;
+ }
+ }
+
+ if (fhandle->main_entry == 0) {
fst_unload (fhandle);
return NULL;
}