diff options
author | Jamie Bullock <jamie@postlude.co.uk> | 2008-01-01 16:17:44 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@postlude.co.uk> | 2008-01-01 16:17:44 +0000 |
commit | 7f86524dd021c5905df111d1254004576fd872f0 (patch) | |
tree | f6ee0de29c3ca6d5cb28b081c19168623aef505f /xtract | |
parent | 445505b69a8517b5ab586bfdba2e1c719aa9ef7d (diff) | |
download | LibXtract-7f86524dd021c5905df111d1254004576fd872f0.tar.gz LibXtract-7f86524dd021c5905df111d1254004576fd872f0.tar.bz2 LibXtract-7f86524dd021c5905df111d1254004576fd872f0.zip |
- Improvements to SWIG bindings generation script
- Fixed omission in xtract_bark_coefficients that was causing the output to be complete b/s! This fixed bark_coeffs and loudness feature which depends on it
- Changes to descriptor API: added is_delta and id. id corresponds to value in xtract_features_ enum and is useful for programmatic conversions between id and name string.
Diffstat (limited to 'xtract')
-rw-r--r-- | xtract/libxtract.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/xtract/libxtract.h b/xtract/libxtract.h index ae70efb..32d3c31 100644 --- a/xtract/libxtract.h +++ b/xtract/libxtract.h @@ -249,6 +249,8 @@ typedef enum xtract_vector_ { /** \brief Data structure containing useful information about functions provided by LibXtract. */ typedef struct _xtract_function_descriptor { + int id; + struct { char name[XTRACT_MAX_NAME_LENGTH]; char p_name[XTRACT_MAX_NAME_LENGTH]; /* pretty name */ @@ -379,6 +381,12 @@ int xtract_init_bark(int N, float sr, int *band_limits); */ int xtract_init_fft(int N, int feature_name); +/** \brief Free memory used for fft plans + * + * This function should be used to explicitly free memory allocated for ffts by xtract_init_fft(). It is primarily intended for use if a new FFT needs to be taken with a different blocksize. If only one fft size is required then there is no need to call this function since it will be called when the program exits. + * */ +void xtract_free_fft(void); + /** \brief Make a window of a given type and return a pointer to it * * \param N: the size of the window @@ -395,10 +403,10 @@ float *xtract_init_window(const int N, const int type); void xtract_free_window(float *window); /* \brief A function to build an array of function descriptors */ -void *xtract_make_descriptors(); +xtract_function_descriptor_t *xtract_make_descriptors(); /* \brief A function to free an array of function descriptors */ -int xtract_free_descriptors(void *fd); +int xtract_free_descriptors(xtract_function_descriptor_t *fd); /* Free functions */ /** @} */ |