Mixer: Improve chain insert debugging messages.

This commit is contained in:
Jonathan Moore Liles 2010-01-17 22:01:37 -06:00
parent 8e0a625312
commit db0dfc1701
1 changed files with 8 additions and 1 deletions

View File

@ -455,7 +455,11 @@ Chain::insert ( Module *m, Module *n )
n->chain( this ); n->chain( this );
} }
else else
{
DMESSAGE( "Module says it can't support %i inputs", module( modules() - 1 )->noutputs() );
goto err; goto err;
}
} }
else else
{ {
@ -488,7 +492,8 @@ Chain::insert ( Module *m, Module *n )
n->chain( this ); n->chain( this );
} }
DMESSAGE( "Module has %i:%i audio and %i:%i control ports", DMESSAGE( "Module \"%s\" has %i:%i audio and %i:%i control ports",
n->name(),
n->ninputs(), n->ninputs(),
n->noutputs(), n->noutputs(),
n->ncontrol_inputs(), n->ncontrol_inputs(),
@ -504,6 +509,8 @@ Chain::insert ( Module *m, Module *n )
err: err:
DMESSAGE( "Insert failed" );
engine()->unlock(); engine()->unlock();
return false; return false;