diff xtract/libxtract.h @ 38:0ea4d6430cfc

Implemented xtract_harmonics
author Jamie Bullock <jamie@postlude.co.uk>
date Sat, 09 Dec 2006 15:21:35 +0000
parents d8e72a79b86b
children 4a36f70a76e9
line wrap: on
line diff
--- a/xtract/libxtract.h	Sat Dec 09 11:42:13 2006 +0000
+++ b/xtract/libxtract.h	Sat Dec 09 15:21:35 2006 +0000
@@ -53,7 +53,7 @@
   * @{
   */
 
-#define XTRACT_FEATURES 43
+#define XTRACT_FEATURES 44
     
 #define LOG_LIMIT 10e-10
 #define VERY_BIG_NUMBER 2e10
@@ -104,7 +104,8 @@
     MAGNITUDE_SPECTRUM,
     AUTOCORRELATION_FFT,
     MFCC,
-    DCT
+    DCT,
+    HARMONICS
 };
 
 /** \brief Enumeration of feature types */
@@ -126,7 +127,8 @@
     MALLOC_FAILED,
     BAD_ARGV,
     BAD_VECTOR_SIZE,
-    NO_RESULT
+    NO_RESULT,
+    FEATURE_NOT_IMPLEMENTED
 };
 
 /**
@@ -178,12 +180,18 @@
 #ifdef XTRACT
 extern int(*xtract[XTRACT_FEATURES])(float *data, int N, void *argv, float *result);
 
-
 /** \brief An array of pointers to function help strings
  *
  * Defined in libxtract.c. As a minimum this will contain pointers to the names of all of the feature extraction functions in the library. This is intended as a 'quick reference' to be queried as necessary.
  */
 extern char *xtract_help_strings[XTRACT_FEATURES];
+
+/** \brief An array of pointers to strings giving function output units
+ *
+ * Defined in libxtract.c. This contains pointers to strings giving the output units of all of the feature extraction functions in the library. This is intended as a 'quick reference' to be queried as necessary.
+ */
+extern char *xtract_units[XTRACT_FEATURES];
+
 #endif
 
 /** \brief A structure to store a set of n_filters Mel filters */