mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
add support for VST>=2.4
This commit is contained in:
parent
156a5a0e5f
commit
348115c0f7
1 changed files with 10 additions and 1 deletions
|
|
@ -566,7 +566,16 @@ fst_load (const char *path)
|
||||||
return NULL;
|
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);
|
fst_unload (fhandle);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue