Mixer: Don't create/destroy OSC ports more often than necessary.
This commit is contained in:
parent
5027e65d13
commit
d2a3afb810
|
@ -352,11 +352,14 @@ public:
|
||||||
Chain *chain ( void ) const { return _chain; }
|
Chain *chain ( void ) const { return _chain; }
|
||||||
void chain ( Chain * v )
|
void chain ( Chain * v )
|
||||||
{
|
{
|
||||||
_chain = v;
|
if ( _chain != v )
|
||||||
|
|
||||||
for ( int i = 0; i < ncontrol_inputs(); ++i )
|
|
||||||
{
|
{
|
||||||
control_input[i].update_osc_port();
|
_chain = v;
|
||||||
|
|
||||||
|
for ( int i = 0; i < ncontrol_inputs(); ++i )
|
||||||
|
{
|
||||||
|
control_input[i].update_osc_port();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue