Changeset 466dff3 for examples/utils.h
- Timestamp:
- Dec 7, 2013, 4:09:00 AM (10 years ago)
- 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:
- 3da8187
- Parents:
- 44e94f3c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/utils.h
r44e94f3c r466dff3 1 1 /* 2 Copyright (C) 2003-20 09Paul Brossier <piem@aubio.org>2 Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org> 3 3 4 4 This file is part of aubio. … … 30 30 31 31 #ifdef HAVE_C99_VARARGS_MACROS 32 #define debug(...) if (verbose) fprintf (stderr, __VA_ARGS__) 33 #define errmsg(...) fprintf (stderr, __VA_ARGS__) 34 #define outmsg(...) fprintf (stdout, __VA_ARGS__) 32 #ifdef HAVE_DEBUG 33 #define debug(...) fprintf (stderr, __VA_ARGS__) 35 34 #else 36 #define debug(format, args...) if (verbose) fprintf(stderr, format , ##args) 37 #define errmsg(format, args...) fprintf(stderr, format , ##args) 38 #define outmsg(format, args...) fprintf(stdout, format , ##args) 35 #define debug(...) 36 #endif 37 #define verbmsg(...) if (verbose) fprintf (stderr, __VA_ARGS__) 38 #define errmsg(...) fprintf (stderr, __VA_ARGS__) 39 #define outmsg(...) fprintf (stdout, __VA_ARGS__) 40 #else 41 #ifdef HAVE_DEBUG 42 #define debug(...) fprintf (stderr, format , **args) 43 #else 44 #define debug(...) () 45 #endif 46 #define verbmsg(format, args...) if (verbose) fprintf(stderr, format , ##args) 47 #define errmsg(format, args...) fprintf(stderr, format , ##args) 48 #define outmsg(format, args...) fprintf(stdout, format , ##args) 39 49 #endif 40 50 41 51 typedef void (aubio_print_func_t) (void); 42 #ifndef HAVE_JACK 43 typedef int (*aubio_process_func_t) 44 (smpl_t ** input, smpl_t ** output, int nframes); 45 #endif 52 typedef int (*aubio_process_func_t)(fvec_t * input, fvec_t * output); 46 53 void send_noteon (int pitch, int velo); 47 54 48
Note: See TracChangeset
for help on using the changeset viewer.