[PD-dev] passing symbol arguments to a method

Krzysztof Czaja czaja at chopin.edu.pl
Tue Jul 2 17:54:01 CEST 2002

hi Ben,

use image1_src->s_name (but only after making sure image1_src
is not null, because you have declared it as A_DEFSYM).


Ben Bogart - FMPM/F1999 wrote:
 > I'm trying to build a PD method for this SDL function:
 > SDL_Surface *IMG_Load(const char *file);
 > problem is I can't figure out how to pass the symbol argument as a
 > filename which IMG_Load expects. Here is my current method:
 > void load_images(mystruct *x, t_symbol* image1_src, t_symbol* image2_src)
 > {
 >         /* Symbol pointer stuff */
 >         image1 = IMG_Load( (char *) image1_src );

More information about the Pd-dev mailing list