Mixer/Chain: Don't block RT thread when printing debugging messages.

This commit is contained in:
Jonathan Moore Liles 2013-03-15 17:49:58 -07:00
parent 0e467993a2
commit e8892926fd
1 changed files with 9 additions and 8 deletions

View File

@ -562,12 +562,6 @@ Chain::insert ( Module *m, Module *n )
n->chain( this ); n->chain( this );
} }
DMESSAGE( "Module \"%s\" has %i:%i audio and %i:%i control ports",
n->name(),
n->ninputs(),
n->noutputs(),
n->ncontrol_inputs(),
n->ncontrol_outputs() );
strip()->handle_module_added( n ); strip()->handle_module_added( n );
@ -575,14 +569,21 @@ Chain::insert ( Module *m, Module *n )
engine()->unlock(); engine()->unlock();
DMESSAGE( "Module \"%s\" has %i:%i audio and %i:%i control ports",
n->name(),
n->ninputs(),
n->noutputs(),
n->ncontrol_inputs(),
n->ncontrol_outputs() );
return true; return true;
err: err:
DMESSAGE( "Insert failed" );
engine()->unlock(); engine()->unlock();
DMESSAGE( "Insert failed" );
return false; return false;
} }