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;
|
int n = 0;
|
||||||
|
|
||||||
for ( int i = 0; i < modules(); ++i )
|
for ( int i = 0; i < modules() && module(i) != m; ++i )
|
||||||
{
|
if ( ! strcmp( module(i)->label(), m->label() ) )
|
||||||
if ( module(i) == m )
|
|
||||||
break;
|
|
||||||
|
|
||||||
if ( ! strcmp( module(i)->name(), m->name() ) )
|
|
||||||
n++;
|
n++;
|
||||||
}
|
|
||||||
|
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue