Mixer: Don't create/destroy OSC ports more often than necessary.

pull/3/head
Jonathan Moore Liles 2012-02-09 23:06:21 -08:00
parent 5027e65d13
commit d2a3afb810
1 changed files with 7 additions and 4 deletions

View File

@ -352,11 +352,14 @@ public:
Chain *chain ( void ) const { return _chain; }
void chain ( Chain * v )
{
_chain = v;
for ( int i = 0; i < ncontrol_inputs(); ++i )
if ( _chain != v )
{
control_input[i].update_osc_port();
_chain = v;
for ( int i = 0; i < ncontrol_inputs(); ++i )
{
control_input[i].update_osc_port();
}
}
}