From 382cb7f73dde0e2955fd91b36311af2a87d648d0 Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Tue, 9 Jan 2007 11:30:44 +0000 Subject: Added desc and p_desc fields to descriptor definitions --- examples/puredata/xtract~.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'examples/puredata/xtract~.c') diff --git a/examples/puredata/xtract~.c b/examples/puredata/xtract~.c index c5febd5..25b176a 100644 --- a/examples/puredata/xtract~.c +++ b/examples/puredata/xtract~.c @@ -106,7 +106,7 @@ static void *xtract_new(t_symbol *me, t_int argc, t_atom *argv) { t_int n, N, f, F, n_args, type; t_function_descriptor *fd; - n_args = type = 0; + n_args = type = x->feature = 0; f = F = XTRACT_FEATURES; @@ -124,12 +124,13 @@ static void *xtract_new(t_symbol *me, t_int argc, t_atom *argv) { /* map creation arg to feature */ if(tmp == gensym(fd[f].algo.name)){ x->feature = f; + /* FIX: possible bug if no argument given */ break; } } /* allocate memory for feature arguments */ - n_args = fd[f].n_args; + n_args = fd[f].argc; type = fd[f].argv.type; if(n_args){ @@ -149,7 +150,7 @@ static void *xtract_new(t_symbol *me, t_int argc, t_atom *argv) { x->memory.argv = 0; } - post("xtract~: %s", fd[f].algo.pretty_name); + post("xtract~: %s", fd[f].algo.p_name); /* do init if needed */ if(x->feature == MFCC){ -- cgit v1.2.3