Changeset 9430dfd for examples


Ignore:
Timestamp:
Jan 7, 2012, 3:51:20 AM (12 years ago)
Author:
Paul Brossier <piem@piem.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:
e43464c
Parents:
1081580
Message:

examples/utils.c: dummy functions if no sndfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/utils.c

    r1081580 r9430dfd  
    1919*/
    2020
    21 /** 
     21/**
    2222
    2323  This file includes some tools common to all examples. Code specific to the
     
    6464
    6565
     66#ifdef HAVE_SNDFILE
    6667aubio_sndfile_t *file = NULL;
    6768aubio_sndfile_t *fileout = NULL;
     69#else
     70void *file = NULL;
     71void *fileout = NULL;
     72#endif
    6873
    6974fvec_t *ibuf;
     
    197202}
    198203
     204#ifdef HAVE_SNDFILE
     205
    199206void
    200207examples_common_init (int argc, char **argv)
     
    259266}
    260267
     268#else /* HAVE_SNDFILE */
     269
     270void
     271examples_common_init (int argc, char **argv)
     272{
     273  outmsg ("Error, compiled without sndfile, nothing to do for now!\n");
     274}
     275
     276
     277#endif /* HAVE_SNDFILE */
     278
    261279
    262280void
     
    273291aubio_jack_t *jack_setup;
    274292#endif
     293
     294#if HAVE_SNDFILE
    275295
    276296void
     
    321341}
    322342
     343#else /* HAVE_SNDFILE */
     344
     345void
     346examples_common_process (aubio_process_func_t process_func,
     347    aubio_print_func_t print)
     348{
     349}
     350
     351#endif /* HAVE_SNDFILE */
     352
    323353void
    324354flush_process (aubio_process_func_t process_func, aubio_print_func_t print)
Note: See TracChangeset for help on using the changeset viewer.