dsp_setup and proxy_getinlet


    Nov 23 2006 | 7:57 pm
    Hi there,
    Let's say that in creating my MSP object struct, I
    have declared the following:
    typedef struct _myobject {
    t_pxobject obj;
    } t_myobject;
    Now, in the myobject_new method what's the difference
    between calling:
    dsp_setup((t_pxobject *)x, 3);
    and
    dsp_setup(&x->obj, 3);
    same thing goes for proxy_getinlet:
    proxy_getinlet((t_object *)x);
    or
    proxy_getinlet(&x->obj.z_ob);
    Both examples seem to compile fine and work with no
    issue.
    However, what is it best or more 'correct' to use?
    Thank you.
    - Luigi
    ------------------------------------------------------------
    THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS PROHIBITED. IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE SENDER BY E-MAIL AT SUPERBIGIO@YAHOO.COM AND DESTROY ALL COPIES OF THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC1-207.
    ------------------------------------------------------------
    Yahoo! Music Unlimited
    Access over 1 million songs.