aboutsummaryrefslogtreecommitdiff
path: root/src/init.c
diff options
context:
space:
mode:
authorJamie Bullock <jamie@postlude.co.uk>2008-01-01 16:17:44 +0000
committerJamie Bullock <jamie@postlude.co.uk>2008-01-01 16:17:44 +0000
commit7f86524dd021c5905df111d1254004576fd872f0 (patch)
treef6ee0de29c3ca6d5cb28b081c19168623aef505f /src/init.c
parent445505b69a8517b5ab586bfdba2e1c719aa9ef7d (diff)
downloadLibXtract-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/init.c')
-rw-r--r--src/init.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/init.c b/src/init.c
index 6112e73..6e544af 100644
--- a/src/init.c
+++ b/src/init.c
@@ -203,6 +203,18 @@ int xtract_init_fft(int N, int feature_name){
}
+void xtract_free_fft(void){
+ if(fft_plans.spectrum_plan != NULL)
+ fftwf_destroy_plan(fft_plans.spectrum_plan);
+ if(fft_plans.autocorrelation_fft_plan_1 != NULL)
+ fftwf_destroy_plan(fft_plans.autocorrelation_fft_plan_1);
+ if(fft_plans.autocorrelation_fft_plan_2 != NULL)
+ fftwf_destroy_plan(fft_plans.autocorrelation_fft_plan_2);
+ if(fft_plans.dct_plan != NULL)
+ fftwf_destroy_plan(fft_plans.dct_plan);
+// fftwf_cleanup();
+}
+
#endif
int xtract_init_bark(int N, float sr, int *band_limits){