From db0dfc17016bf23570ade98a8c6351508fd5b8fa Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sun, 17 Jan 2010 22:01:37 -0600 Subject: [PATCH] Mixer: Improve chain insert debugging messages. --- Mixer/Chain.C | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Mixer/Chain.C b/Mixer/Chain.C index a00a7ae..b860980 100644 --- a/Mixer/Chain.C +++ b/Mixer/Chain.C @@ -455,7 +455,11 @@ Chain::insert ( Module *m, Module *n ) n->chain( this ); } else + { + DMESSAGE( "Module says it can't support %i inputs", module( modules() - 1 )->noutputs() ); + goto err; + } } else { @@ -488,7 +492,8 @@ Chain::insert ( Module *m, Module *n ) 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->noutputs(), n->ncontrol_inputs(), @@ -504,6 +509,8 @@ Chain::insert ( Module *m, Module *n ) err: + DMESSAGE( "Insert failed" ); + engine()->unlock(); return false;