Fix bug in plugin input configuration.
This commit is contained in:
parent
5248b90880
commit
5b8040b165
|
@ -229,12 +229,14 @@ Plugin_Module::can_support_inputs ( int n )
|
|||
bool
|
||||
Plugin_Module::configure_inputs( int n )
|
||||
{
|
||||
if ( ninputs() == n )
|
||||
return true;
|
||||
int inst = _idata->handle.size();
|
||||
|
||||
int inst = 1;
|
||||
if ( ninputs() != n )
|
||||
{
|
||||
_crosswire = false;
|
||||
|
||||
if ( n != ninputs() )
|
||||
{
|
||||
if ( 1 == n && plugin_ins() > 1 )
|
||||
{
|
||||
DMESSAGE( "Cross-wiring plugin inputs" );
|
||||
|
@ -261,15 +263,17 @@ Plugin_Module::configure_inputs( int n )
|
|||
|
||||
inst = n;
|
||||
}
|
||||
if ( n == plugin_ins() )
|
||||
else if ( n == plugin_ins() )
|
||||
{
|
||||
|
||||
DMESSAGE( "Plugin input configuration is a perfect match" );
|
||||
}
|
||||
else
|
||||
{
|
||||
// unsupported configuration
|
||||
DMESSAGE( "Unsupported input configuration" );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( _active )
|
||||
deactivate();
|
||||
|
|
Loading…
Reference in New Issue