Can't get my int sent to the right outlet

Nov 29, 2012 at 1:51am

Can't get my int sent to the right outlet

I create three outlets :

x->outlet1 = listout((t_object *)x);
 x->outlet2 = intout((t_object *)x);
x->outlet3 = intout((t_object *)x);

Then if I have this code:

outlet_int(x->outlet2, 1);

I have the number 1 coming from the second outlet.

However with this code :

outlet_int(x->outlet3, 1);

the number comes from the first outlet, not the third.

What’s wrong ?

#65419
Nov 29, 2012 at 6:21am

Hello

Outlets are created right to left.

x->right = intout((t_object *)x);
x->middle = intout((t_object *)x);
x->left = listout((t_object *)x);
#235737
Nov 29, 2012 at 7:20am

Ah boooooon. Thanks Nicolas !

#235738

You must be logged in to reply to this topic.