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 /src/descriptors.c | |
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 'src/descriptors.c')
-rw-r--r-- | src/descriptors.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/descriptors.c b/src/descriptors.c index 4c232d7..ac1fd1b 100644 --- a/src/descriptors.c +++ b/src/descriptors.c @@ -24,7 +24,7 @@ #include <string.h> #define XTRACT -void *xtract_make_descriptors(){ +xtract_function_descriptor_t *xtract_make_descriptors(void){ int f , F; char *name, *p_name, *desc, *p_desc, *author; @@ -45,6 +45,7 @@ void *xtract_make_descriptors(){ while(f--){ d = &fd[f]; + d->id = f; argc = &d->argc; argv_type = &d->argv.type; @@ -502,7 +503,7 @@ void *xtract_make_descriptors(){ strcpy(author, ""); break; case XTRACT_ROLLOFF: - strcpy(name, "spectral_rolloff"); + strcpy(name, "rolloff"); strcpy(p_name, "Spectral Rolloff"); strcpy(desc, "Extract the rolloff point of a spectrum"); @@ -1250,7 +1251,7 @@ void *xtract_make_descriptors(){ return fd; } -int xtract_free_descriptors(void *fd){ +int xtract_free_descriptors(xtract_function_descriptor_t *fd){ if (fd != NULL) { free(fd); |