diff options
author | Jamie Bullock <jamie@postlude.co.uk> | 2007-08-19 21:27:55 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@postlude.co.uk> | 2007-08-19 21:27:55 +0000 |
commit | 9fc8f4ef9a0bb442fa275f2fa6c415ae4b25cb16 (patch) | |
tree | 0c67a18ca96b6c244fc932be9332cdb0fdc0c242 /examples | |
parent | de66582f51c1e5ce57325d79b55292c64267f1ff (diff) | |
download | LibXtract-9fc8f4ef9a0bb442fa275f2fa6c415ae4b25cb16.tar.gz LibXtract-9fc8f4ef9a0bb442fa275f2fa6c415ae4b25cb16.tar.bz2 LibXtract-9fc8f4ef9a0bb442fa275f2fa6c415ae4b25cb16.zip |
Fix for MSP example list argument bug
Diffstat (limited to 'examples')
-rw-r--r-- | examples/MSP/xtract~.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/MSP/xtract~.c b/examples/MSP/xtract~.c index 3f8115a..11a40f5 100644 --- a/examples/MSP/xtract~.c +++ b/examples/MSP/xtract~.c @@ -260,10 +260,13 @@ t_int argc, t_atom *argv) { post("Too many parameters to right inlet"); else{*/ + t_float temp = 0.f; x->argv = getbytes(argc * sizeof(float)); - while(argc--) - ((t_float *)x->argv)[argc] = atom_getfloatarg(1, argc, argv); + while(argc--){ + temp = argv[argc].a_w.w_float; + ((t_float *)x->argv)[argc] = temp; + } /* }*/ } |