aboutsummaryrefslogtreecommitdiff
path: root/examples/puredata/xtract~.c
diff options
context:
space:
mode:
authorJamie Bullock <jamie@postlude.co.uk>2007-01-09 11:30:44 +0000
committerJamie Bullock <jamie@postlude.co.uk>2007-01-09 11:30:44 +0000
commit382cb7f73dde0e2955fd91b36311af2a87d648d0 (patch)
tree8bad32c21b796e31410d201ec267d8a5525addcd /examples/puredata/xtract~.c
parent04fe4034a798513e7426bdecce6a760a7c2be7c9 (diff)
downloadLibXtract-382cb7f73dde0e2955fd91b36311af2a87d648d0.tar.gz
LibXtract-382cb7f73dde0e2955fd91b36311af2a87d648d0.tar.bz2
LibXtract-382cb7f73dde0e2955fd91b36311af2a87d648d0.zip
Added desc and p_desc fields to descriptor definitions
Diffstat (limited to 'examples/puredata/xtract~.c')
-rw-r--r--examples/puredata/xtract~.c7
1 files changed, 4 insertions, 3 deletions
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){