[PD] specific external problem
J. Scott Hildebrand
jshildebrand at ucdavis.edu
Fri Aug 8 23:17:50 CEST 2003
when trying to dynamically create a user-defined amount of audio inputs, i
try the following code but it just seg faults.
static void *multi_source_convolution_tilde_new(t_floatarg f, char
*argv[])
{
int i;
t_multi_source_convolution_tilde *x =
(t_multi_source_convolution_tilde
*)pd_new(multi_source_convolution_tilde_class);
x->f_multi_source_convolution = f;
//additional signal and float inlets
inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("float"), gensym("first"));
inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("float"), gensym("bound"));
for(i = 0; i <= atoi(argv[2]); i++)
{
inlet_new(&x->x_obj, &x->x_obj.ob_pd, &s_signal, &s_signal);
}
//two signal outlets for stereo
outlet_new(&x->x_obj, &s_signal);
outlet_new(&x->x_obj, &s_signal);
return (void *)x;
}
--------------------------------------------------------------------
"640K ought to be enough for anybody." -- Bill Gates, 1981
--------------------------------------------------------------------
More information about the Pd-list
mailing list