diff options
| author | Tim E. Real <termtech@rogers.com> | 2012-12-08 22:42:51 +0000 | 
|---|---|---|
| committer | Tim E. Real <termtech@rogers.com> | 2012-12-08 22:42:51 +0000 | 
| commit | 4679425f17799eacd79941287c979a10f2e6b990 (patch) | |
| tree | cce78dbc8239981fd119a83f78e629057e2b923f /muse2/muse | |
| parent | 06ad98cc7ba5a9d282be31dc8dc65c447b7ada94 (diff) | |
Header again. Also allow some older plugins like Highlife, ZR3.
Diffstat (limited to 'muse2/muse')
| -rw-r--r-- | muse2/muse/vst_native.cpp | 4 | 
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"); | 
