Mercurial > hg > libxtract
diff examples/puredata/xtract~.c @ 51:5306739416cf
Added desc and p_desc fields to descriptor definitions
author | Jamie Bullock <jamie@postlude.co.uk> |
---|---|
date | Tue, 09 Jan 2007 11:30:44 +0000 |
parents | 435be4a78aac |
children | 45c585bb7996 |
line wrap: on
line diff
--- a/examples/puredata/xtract~.c Fri Dec 22 20:13:02 2006 +0000 +++ b/examples/puredata/xtract~.c Tue Jan 09 11:30:44 2007 +0000 @@ -106,7 +106,7 @@ 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 @@ /* 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 @@ 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){