- Timestamp:
- Sep 23, 2009, 7:40:14 PM (15 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:
- 000b090
- Parents:
- 2062e48
- Location:
- examples
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/utils.c
r2062e48 rb511fa9 2 2 #include "aubio.h" 3 3 4 #ifndef JACK_SUPPORT5 #define JACK_SUPPORT04 #ifndef HAVE_JACK 5 #define HAVE_JACK 0 6 6 #endif 7 7 … … 13 13 #include "utils.h" 14 14 15 #ifdef LASH_SUPPORT15 #ifdef HAVE_LASH 16 16 #include <lash/lash.h> 17 17 #include <pthread.h> … … 23 23 void restore_data(lash_config_t * lash_config); 24 24 pthread_t lash_thread; 25 #endif /* LASH_SUPPORT*/25 #endif /* HAVE_LASH */ 26 26 27 27 /* settings */ … … 131 131 {NULL , 0, NULL, 0} 132 132 }; 133 #ifdef LASH_SUPPORT133 #ifdef HAVE_LASH 134 134 lash_args = lash_extract_args(&argc, &argv); 135 #endif /* LASH_SUPPORT*/135 #endif /* HAVE_LASH */ 136 136 prog_name = argv[0]; 137 137 if( argc < 1 ) { … … 238 238 debug ("Output file : %s\n", output_filename ); 239 239 } else { 240 if ( JACK_SUPPORT)240 if (HAVE_JACK) 241 241 { 242 242 debug ("Jack input output\n"); … … 288 288 fileout = new_aubio_sndfile_wo(file, output_filename); 289 289 } 290 #ifdef LASH_SUPPORT290 #ifdef HAVE_LASH 291 291 else { 292 292 aubio_lash_client = lash_init(lash_args, argv[0], … … 304 304 } 305 305 } 306 #endif /* LASH_SUPPORT*/306 #endif /* HAVE_LASH */ 307 307 308 308 ibuf = new_fvec(overlap_size, channels); … … 360 360 void examples_common_process(aubio_process_func_t process_func, aubio_print_func_t print ){ 361 361 if(usejack) { 362 #if JACK_SUPPORT362 #if HAVE_JACK 363 363 aubio_jack_t * jack_setup; 364 364 debug("Jack init ...\n"); … … 432 432 smpl_t mpitch = floor(aubio_freqtomidi(pitch)+.5); 433 433 /* we should check if we use midi here, not jack */ 434 #if ALSA_SUPPORT434 #if HAVE_ALSA 435 435 if (usejack) { 436 436 if (velo==0) { … … 474 474 } 475 475 476 #if LASH_SUPPORT476 #if HAVE_LASH 477 477 478 478 void * lash_thread_main(void *data __attribute__((unused))) … … 543 543 } 544 544 545 #endif /* LASH_SUPPORT*/546 545 #endif /* HAVE_LASH */ 546 -
examples/utils.h
r2062e48 rb511fa9 52 52 void examples_common_del(void); 53 53 typedef void (aubio_print_func_t)(void); 54 #ifndef JACK_SUPPORT54 #ifndef HAVE_JACK 55 55 typedef int (*aubio_process_func_t) 56 ( smpl_t **input, smpl_t **output, int nframes);56 (float **input, float **output, int nframes); 57 57 #endif 58 58 void examples_common_process(aubio_process_func_t process_func, aubio_print_func_t print);
Note: See TracChangeset
for help on using the changeset viewer.