Changeset 7e20db8b for examples


Ignore:
Timestamp:
Jul 21, 2006, 8:14:00 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:
45c0f16
Parents:
40536fa
Message:

complete test-phasevoc-jack memory freeing, use sleep instead of pause
complete test-phasevoc-jack memory freeing, use sleep instead of pause

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/tests/test-phasevoc-jack.c

    r40536fa r7e20db8b  
    66 */
    77
    8 #include <unistd.h>  /* pause() */
    9 #include "aubio.h"
    10 #include "aubioext.h"
     8#include <unistd.h>  /* pause() or sleep() */
     9#include <aubio.h>
     10#include <aubioext.h>
    1111
    1212uint_t win_s    = 32; /* window size                       */
    1313uint_t hop_s    = 8;  /* hop size                          */
    14 uint_t channels = 4;    /* number of channels                */
    15 uint_t pos      = 0;    /* frames%dspblocksize for jack loop */
    16 uint_t usejack    = 1;
     14uint_t channels = 4;  /* number of channels                */
     15uint_t pos      = 0;  /* frames%dspblocksize for jack loop */
     16uint_t usejack  = 1;
    1717
    1818fvec_t * in;
     
    4646                                (aubio_process_func_t)aubio_process);
    4747                aubio_jack_activate(jack_setup);
    48                 pause(); /* enter main jack loop */
     48                sleep(10); //pause(); /* enter main jack loop */
    4949                aubio_jack_close(jack_setup);
    5050        }
    5151       
    5252        del_aubio_pvoc(pv);
     53        del_cvec(fftgrain);
     54        del_fvec(in);
     55        del_fvec(out);
     56        aubio_cleanup();
    5357        printf("memory freed\n");
    5458        return 0;
Note: See TracChangeset for help on using the changeset viewer.