aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJamie Bullock <jamie@postlude.co.uk>2008-02-15 12:43:13 +0000
committerJamie Bullock <jamie@postlude.co.uk>2008-02-15 12:43:13 +0000
commite876da1b38221d8020d81b72926d2dee5c2bdc55 (patch)
tree5795d6dca0e668a43298f1099a61f19831f419f7 /examples
parent24738b0d1371876dc18cb21b516b3e43984e6dbc (diff)
downloadLibXtract-e876da1b38221d8020d81b72926d2dee5c2bdc55.tar.gz
LibXtract-e876da1b38221d8020d81b72926d2dee5c2bdc55.tar.bz2
LibXtract-e876da1b38221d8020d81b72926d2dee5c2bdc55.zip
- Fixed bugs in xtract_flatness(), or at least added necessary
documentation and error checking to avoid problems - Added xtract_is_denormal() helper function and XTRACT_DENORMAL_FOUND return code - Replaced all instances of log, sqrt, exp etc. with respective floating point counterparts (logf etc.) - Added check for architecture endianness to configure script - Bug fix to PD example, now no longer crashes if no arguments are given - Minor documentation updates
Diffstat (limited to 'examples')
-rw-r--r--examples/puredata/xtract~.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/puredata/xtract~.c b/examples/puredata/xtract~.c
index 7a33993..69595fe 100644
--- a/examples/puredata/xtract~.c
+++ b/examples/puredata/xtract~.c
@@ -168,6 +168,10 @@ static void *xtract_new(t_symbol *me, t_int argc, t_atom *argv) {
else
x->feature_name = atom_getsymbol(argv);
}
+ else {
+ post("xtract~: No arguments given");
+ return (void *)x;
+ }
if(argc > 1){
if(x->is_subframe)
x->feature_name = atom_getsymbol(argv+1);
@@ -233,8 +237,6 @@ static void *xtract_new(t_symbol *me, t_int argc, t_atom *argv) {
if(strcmp(author, "") && year)
post("xtract~: %s(%d)", author, year);
}
- else
- post("xtract~: No arguments given");
/* Adjust frame size if we are using subframe features */
if(x->is_subframe)