[Clam-devel] Problem with CascadingTypedControls & SVN Down

Francisco Tufró nictuku at gmail.com
Sun Dec 14 14:36:20 PST 2008


I'm trying to use CascadingTypedInControl to implement a callbacked version
of the MIDISink processing and something is not working ok.
I do the following:
1) create a MIDISource and a MIDISink and connect them.
2) Send some data to the midi source, but the callback function is never
called.

I think that the problem comes from TypedOutControl::DoControl().

template<class TypedControlData>
void TypedOutControl<TypedControlData>::SendControl(const TypedControlData&
val)
{
typename std::list< InControlBase * >::iterator it;
for (it=mLinks.begin(); it!=mLinks.end(); it++) {
((dynamic_cast<TypedInControl<TypedControlData>*>(*it)))->DoControl(val);
}
}

It's casting the OutControlBase from the mLinks to
TypedInControl<TypedControlData>, and then using the DoControl from
TypedInControl<TypedControlData>, but never uses the one from the
CascadingTypedInControl.
Is this the problem?, or i'm doing something wrong in the code?. If this is
the problem, what do we do to solve it?
I've attached the MIDISink code.

PS: Is the svn down? I can't connect to it.
That's all by now.
Francisco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20081214/f1c4f50f/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MIDISink.cxx
Type: application/octet-stream
Size: 796 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20081214/f1c4f50f/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MIDISink.hxx
Type: application/octet-stream
Size: 914 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20081214/f1c4f50f/attachment-0005.obj>


More information about the clam-devel mailing list