annotate src/fini.c @ 110:c8502708853b

- 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.
author Jamie Bullock <jamie@postlude.co.uk>
date Tue, 01 Jan 2008 16:17:44 +0000
parents 7a5859764ccd
children 67f6b6e63d45
rev   line source
jamie@99 1 /* libxtract feature extraction library
jamie@99 2 *
jamie@99 3 * Copyright (C) 2006 Jamie Bullock
jamie@99 4 *
jamie@99 5 * This program is free software; you can redistribute it and/or modify
jamie@99 6 * it under the terms of the GNU General Public License as published by
jamie@99 7 * the Free Software Foundation; either version 2 of the License, or
jamie@99 8 * (at your option) any later version.
jamie@99 9 *
jamie@99 10 * This program is distributed in the hope that it will be useful,
jamie@99 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jamie@99 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
jamie@99 13 * GNU General Public License for more details.
jamie@99 14 *
jamie@99 15 * You should have received a copy of the GNU General Public License
jamie@99 16 * along with this program; if not, write to the Free Software
jamie@99 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
jamie@99 18 * USA.
jamie@99 19 */
jamie@99 20
jamie@99 21 /* fini.c: Contains library destructor routine */
jamie@99 22
jamie@99 23 #ifdef XTRACT_FFT
jamie@99 24 #include <fftw3.h>
jamie@110 25 //#include "xtract_globals_private.h"
jamie@110 26 #include "xtract/libxtract.h"
jamie@99 27 #endif
jamie@99 28
jamie@99 29 #ifdef __GNUC__
jamie@99 30 __attribute__((destructor)) void fini()
jamie@99 31 #else
jamie@99 32 void _fini()
jamie@99 33 #endif
jamie@99 34 {
jamie@99 35 #ifdef XTRACT_FFT
jamie@110 36 xtract_free_fft();
jamie@110 37 fftwf_cleanup();
jamie@99 38 #endif
jamie@99 39 }
jamie@99 40
jamie@99 41
jamie@99 42