Mixer: Fix OSC path naming for multiple instances of the same LADSPA plugin.
This commit is contained in:
parent
7217266f6b
commit
e5e6925c2c
|
@ -386,14 +386,9 @@ Chain::get_module_instance_number ( Module *m )
|
|||
{
|
||||
int n = 0;
|
||||
|
||||
for ( int i = 0; i < modules(); ++i )
|
||||
{
|
||||
if ( module(i) == m )
|
||||
break;
|
||||
|
||||
if ( ! strcmp( module(i)->name(), m->name() ) )
|
||||
for ( int i = 0; i < modules() && module(i) != m; ++i )
|
||||
if ( ! strcmp( module(i)->label(), m->label() ) )
|
||||
n++;
|
||||
}
|
||||
|
||||
return n;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue