RemoteVstPlugin: use SplittedThreading model for MDA plugins

Most of the MDA VST plugins require the SplittedThreading model in order
to run properly. All plugins whose unique ID starts with "mda" will be
driven with the SplittedThreading model.
This commit is contained in:
Tobias Doerffel
2009-03-22 14:50:57 +01:00
parent dc7cc064ce
commit 96fb6f5a38

View File

@@ -566,8 +566,6 @@ bool remoteVstPlugin::load( const std::string & _plugin_file )
case CCONST( 'z', '3', 't', 'a' ): // z3ta+
case CCONST( 'T', 'C', '_', 'S' ): // Cygnus
case CCONST( 'S', 'y', 't', 'r' ): // Sytrus
debugMessage( "switching to splitted threading "
"model\n" );
__threadingModel = SplittedThreading;
break;
@@ -575,6 +573,16 @@ bool remoteVstPlugin::load( const std::string & _plugin_file )
break;
}
// most of MDA plugins only work with SplittedThreading model
if( strncmp( id, "mda", 3 ) == 0 )
{
__threadingModel = SplittedThreading;
}
if( __threadingModel == SplittedThreading )
{
debugMessage( "switching to splitted threading model\n" );
}
m_plugin->dispatcher( m_plugin, effOpen, 0, 0, 0, 0 );