diff examples/puredata/xtract~.c @ 113:72a9a393d5bd

- 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
author Jamie Bullock <jamie@postlude.co.uk>
date Fri, 15 Feb 2008 12:43:13 +0000
parents e6354b0137d3
children 6c5ece9cba3a
line wrap: on
line diff
--- a/examples/puredata/xtract~.c	Wed Jan 02 04:10:21 2008 +0000
+++ b/examples/puredata/xtract~.c	Fri Feb 15 12:43:13 2008 +0000
@@ -168,6 +168,10 @@
         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 @@
 	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)