I'm trying to use CascadingTypedInControl to implement a callbacked version of the MIDISink processing and something is not working ok.<br>I do the following:<br>1) create a MIDISource and a MIDISink and connect them.<br>
2) Send some data to the midi source, but the callback function is never called.<br><br>I think that the problem comes from TypedOutControl::DoControl().<br> <br><div style="margin-left: 40px;">template<class TypedControlData><br>
        void TypedOutControl<TypedControlData>::SendControl(const TypedControlData& val)<br>    {<br><div style="margin-left: 40px;">             typename std::list< InControlBase * >::iterator it;</div><div style="margin-left: 40px;">
                for (it=mLinks.begin(); it!=mLinks.end(); it++) {<br><div style="margin-left: 40px;">                     ((dynamic_cast<<span style="color: rgb(255, 0, 0);">TypedInControl<TypedControlData>*</span>>(*it)))->DoControl(val);<br>
</div>            }<br></div> }<br></div>         <br>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. <br>
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?<br>I've attached the MIDISink code.<br><br>PS: Is the svn down? I can't connect to it.<br>That's all by now.<br>
Francisco<br>