Changeset e43464c


Ignore:
Timestamp:
Jan 7, 2012, 3:53:32 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:
466a5da
Parents:
8b3a7e7 (diff), 9430dfd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of piem.org:/git/aubio/aubio

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r8b3a7e7 re43464c  
    154154fi
    155155
    156 PKG_CHECK_MODULES(SNDFILE,     sndfile >= 1.0.4,       HAVE_SNDFILE=1)
    157 if test "${HAVE_SNDFILE}" = "1"; then
    158   AC_DEFINE(HAVE_SNDFILE,1,[Define to enable libsndfile support])
     156AC_ARG_ENABLE(sndfile,
     157  AC_HELP_STRING([--enable-sndfile],[compile with sndfile [[default=auto]]]),
     158  [with_sndfile=$enableval],
     159  with_sndfile="yes")
     160if test "$with_sndfile" = "yes"; then
     161  PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.4, HAVE_SNDFILE=1, HAVE_SNDFILE=0)
     162  if test "${HAVE_SNDFILE}" = "1"; then
     163    AC_DEFINE(HAVE_SNDFILE,1,[Define to enable libsndfile support])
     164  fi
    159165fi
    160166
  • examples/sndfileio.c

    r8b3a7e7 re43464c  
    1818
    1919*/
     20
     21#ifdef HAVE_SNDFILE
    2022
    2123#include <string.h>
     
    248250}
    249251
     252#endif /* HAVE_SNDFILE */
  • examples/utils.c

    r8b3a7e7 re43464c  
    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)
  • tests/src/Makefile.am

    r8b3a7e7 re43464c  
    66
    77bin_PROGRAMS = \
    8         test-fft \
    98        test-hist \
    109        test-scale \
     
    2827        test-pitchmcomb \
    2928        test-pitch \
    30         test-beattracking \
    3129        test-onset \
    32         test-tempo \
    3330        test-mathutils \
    3431        test-tss
Note: See TracChangeset for help on using the changeset viewer.