summaryrefslogtreecommitdiff
path: root/muse2/muse
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2012-12-08 22:42:51 +0000
committerTim E. Real <termtech@rogers.com>2012-12-08 22:42:51 +0000
commit4679425f17799eacd79941287c979a10f2e6b990 (patch)
treecce78dbc8239981fd119a83f78e629057e2b923f /muse2/muse
parent06ad98cc7ba5a9d282be31dc8dc65c447b7ada94 (diff)
Header again. Also allow some older plugins like Highlife, ZR3.
Diffstat (limited to 'muse2/muse')
-rw-r--r--muse2/muse/vst_native.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/muse2/muse/vst_native.cpp b/muse2/muse/vst_native.cpp
index e5a0fed3..8cc16227 100644
--- a/muse2/muse/vst_native.cpp
+++ b/muse2/muse/vst_native.cpp
@@ -390,7 +390,7 @@ static void scanVstNativeLib(QFileInfo& fi)
// "2 = VST2.x, older versions return 0". Observed 2400 on all the ones tested so far.
vst_version = plugin->dispatcher(plugin, effGetVstVersion, 0, 0, NULL, 0.0f);
- if(vst_version < 2 || !((plugin->flags & effFlagsIsSynth) || (plugin->dispatcher(plugin, effCanDo, 0, 0,(void*) "receiveVstEvents", 0.0f) > 0)))
+ if(!((plugin->flags & effFlagsIsSynth) || (vst_version >= 2 && plugin->dispatcher(plugin, effCanDo, 0, 0,(void*) "receiveVstEvents", 0.0f) > 0)))
{
if(MusEGlobal::debugMsg)
fprintf(stderr, "Plugin is not a synth\n");
@@ -637,7 +637,7 @@ AEffect* VstNativeSynth::instantiate()
// "2 = VST2.x, older versions return 0". Observed 2400 on all the ones tested so far.
vst_version = plugin->dispatcher(plugin, effGetVstVersion, 0, 0, NULL, 0.0f);
- if(vst_version < 2 || !((plugin->flags & effFlagsIsSynth) || (plugin->dispatcher(plugin, effCanDo, 0, 0,(void*) "receiveVstEvents", 0.0f) > 0)))
+ if(!((plugin->flags & effFlagsIsSynth) || (vst_version >= 2 && plugin->dispatcher(plugin, effCanDo, 0, 0,(void*) "receiveVstEvents", 0.0f) > 0)))
{
if(MusEGlobal::debugMsg)
fprintf(stderr, "Plugin is not a synth\n");