Changeset 714380d for src


Ignore:
Timestamp:
Jul 13, 2006, 5:01:11 PM (18 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
c621415
Parents:
bf8e134
Message:

add aubio_cleanup to clean fftw cached memory
add aubio_cleanup to clean fftw cached memory

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mathutils.c

    rbf8e134 r714380d  
    2323#include "sample.h"
    2424#include "mathutils.h"
     25#include "config.h"
    2526
    2627void aubio_window(smpl_t *w, uint_t size, aubio_window_type wintype) {
     
    454455}
    455456
     457void aubio_cleanup(void)
     458{
     459#if FFTW3_SUPPORT
     460        fftw_cleanup();
     461#else
     462#if FFTW3F_SUPPORT
     463        fftwf_cleanup();
     464#endif
     465#endif
     466}
  • src/mathutils.h

    rbf8e134 r714380d  
    246246 */
    247247void aubio_autocorr(fvec_t * input, fvec_t * output);
     248/**
     249 * clean up cached memory at the end of program
     250 *
     251 * use this function at the end of programs to purge all
     252 * cached memory. so far this function is only used to clean
     253 * fftw cache.
     254 */
     255void aubio_cleanup(void);
    248256
    249257#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.