Changeset b511fa9
- 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
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r2062e48 rb511fa9 143 143 AC_PATH_PROG(PKG_CONFIG,pkg-config,no) 144 144 145 PKG_CHECK_MODULES(SNDLIB, sndfile >= 1.0.4, SNDLIB_SUPPORT=1)146 PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.0.15, SAMPLERATE_SUPPORT=1)147 148 if test "${ SNDLIB_SUPPORT}" = "1"; then149 AC_DEFINE( SNDLIB_SUPPORT,1,[Define to enable libsndfile support])145 PKG_CHECK_MODULES(SNDLIB, sndfile >= 1.0.4, HAVE_SNDLIB=1) 146 PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.0.15, HAVE_SAMPLERATE=1) 147 148 if test "${HAVE_SNDLIB}" = "1"; then 149 AC_DEFINE(HAVE_SNDLIB,1,[Define to enable libsndfile support]) 150 150 fi 151 151 … … 156 156 with_fftw3f="yes") 157 157 if test "$with_fftw3f" = "yes"; then 158 PKG_CHECK_MODULES(FFTWLIB, fftw3f >= 3.0.0, FFTW3F_SUPPORT=1, FFTW3F_SUPPORT=0)159 else 160 PKG_CHECK_MODULES(FFTWLIB, fftw3 >= 3.0.0, FFTW3_SUPPORT=1)161 fi 162 if test "${ FFTW3F_SUPPORT}" = "0"; then163 PKG_CHECK_MODULES(FFTWLIB, fftw3 >= 3.0.0, FFTW3_SUPPORT=1)164 fi 165 if test "${ FFTW3_SUPPORT}" = "1"; then166 AC_DEFINE( FFTW3_SUPPORT,1,[Define to enable fftw3 support])167 fi 168 if test "${ FFTW3F_SUPPORT}" = "1"; then169 AC_DEFINE( FFTW3F_SUPPORT,1,[Define to enable fftw3f support])158 PKG_CHECK_MODULES(FFTWLIB, fftw3f >= 3.0.0, HAVE_FFTW3F=1, HAVE_FFTW3F=0) 159 else 160 PKG_CHECK_MODULES(FFTWLIB, fftw3 >= 3.0.0, HAVE_FFTW3=1) 161 fi 162 if test "${HAVE_FFTW3F}" = "0"; then 163 PKG_CHECK_MODULES(FFTWLIB, fftw3 >= 3.0.0, HAVE_FFTW3=1) 164 fi 165 if test "${HAVE_FFTW3}" = "1"; then 166 AC_DEFINE(HAVE_FFTW3,1,[Define to enable fftw3 support]) 167 fi 168 if test "${HAVE_FFTW3F}" = "1"; then 169 AC_DEFINE(HAVE_FFTW3F,1,[Define to enable fftw3f support]) 170 170 fi 171 171 … … 177 177 if test "$with_jack" = "yes" 178 178 then 179 PKG_CHECK_MODULES(JACK, jack >= 0.15.0, JACK_SUPPORT=1, JACK_SUPPORT=0)180 if test "${ JACK_SUPPORT}" = "1"; then181 AC_DEFINE( JACK_SUPPORT,1,[Define to enable jack support])179 PKG_CHECK_MODULES(JACK, jack >= 0.15.0, HAVE_JACK=1, HAVE_JACK=0) 180 if test "${HAVE_JACK}" = "1"; then 181 AC_DEFINE(HAVE_JACK,1,[Define to enable jack support]) 182 182 fi 183 183 fi … … 192 192 if test "$with_jack" = "yes" 193 193 then 194 PKG_CHECK_MODULES(ALSA, alsa >= 0.0.9, ALSA_SUPPORT=1, ALSA_SUPPORT=0)195 if test "${ ALSA_SUPPORT}" = "1"; then196 AC_DEFINE( ALSA_SUPPORT,1,[Define to enable alsa support])194 PKG_CHECK_MODULES(ALSA, alsa >= 0.0.9, HAVE_ALSA=1, HAVE_ALSA=0) 195 if test "${HAVE_ALSA}" = "1"; then 196 AC_DEFINE(HAVE_ALSA,1,[Define to enable alsa support]) 197 197 fi 198 198 else … … 208 208 if test "$with_lash" = "yes" 209 209 then 210 PKG_CHECK_MODULES(LASH, lash-1.0 >= 0.5.0, LASH_SUPPORT=1, LASH_SUPPORT=0)211 if test "${ LASH_SUPPORT}" = "1"; then212 LASH_CFLAGS+="-D LASH_SUPPORT"210 PKG_CHECK_MODULES(LASH, lash-1.0 >= 0.5.0, HAVE_LASH=1, HAVE_LASH=0) 211 if test "${HAVE_LASH}" = "1"; then 212 LASH_CFLAGS+="-DHAVE_LASH" 213 213 fi 214 214 fi … … 270 270 echo "**************************************************************" 271 271 echo "Summary:" 272 if test "${ FFTW3F_SUPPORT}" = "1"; then272 if test "${HAVE_FFTW3F}" = "1"; then 273 273 echo "Fftw3: yes (using fftw3f)" 274 274 else 275 if test "${ FFTW3_SUPPORT}" = "1"; then275 if test "${HAVE_FFTW3}" = "1"; then 276 276 echo "Fftw3: yes (not using fftw3f)" 277 277 else … … 279 279 fi 280 280 fi 281 if test "${ SNDLIB_SUPPORT}" = "1"; then281 if test "${HAVE_SNDLIB}" = "1"; then 282 282 echo "Libsndfile: yes" 283 283 else 284 284 echo "Libsndfile: no" 285 285 fi 286 if test "${ SAMPLERATE_SUPPORT}" = "1"; then286 if test "${HAVE_SAMPLERATE}" = "1"; then 287 287 echo "Libsamplerate: yes" 288 288 else 289 289 echo "Libsamplerate: no" 290 290 fi 291 if test "${ JACK_SUPPORT}" = "1"; then291 if test "${HAVE_JACK}" = "1"; then 292 292 echo "JACK: yes" 293 293 else 294 294 echo "JACK: no" 295 295 fi 296 if test "${ ALSA_SUPPORT}" = "1"; then296 if test "${HAVE_ALSA}" = "1"; then 297 297 echo "ALSA midi: yes" 298 298 else 299 299 echo "ALSA midi: no" 300 300 fi 301 if test "${ LASH_SUPPORT}" = "1"; then301 if test "${HAVE_LASH}" = "1"; then 302 302 echo "Lash: yes" 303 303 else -
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); -
ext/aubioext.h
r2062e48 rb511fa9 28 28 #include <aubio.h> 29 29 30 #ifdef JACK_SUPPORT30 #ifdef HAVE_JACK 31 31 #include "jackio.h" 32 32 #endif 33 34 #if HAVE_ALSA 35 #define ALSA_SUPPORT 1 36 #endif 33 37 34 38 #include "sndfileio.h" -
ext/jackio.c
r2062e48 rb511fa9 19 19 20 20 #include "config.h" 21 #ifdef JACK_SUPPORT21 #ifdef HAVE_JACK 22 22 #include <jack/jack.h> 23 23 #include "aubio_priv.h" … … 173 173 174 174 175 #endif /* JACK_SUPPORT*/175 #endif /* HAVE_JACK */ -
ext/jackio.h
r2062e48 rb511fa9 35 35 typedef struct _aubio_jack_t aubio_jack_t; 36 36 /** jack process function */ 37 typedef int (*aubio_process_func_t)( smpl_t **input, smpl_t **output, int37 typedef int (*aubio_process_func_t)(float **input, float **output, int 38 38 nframes); 39 39 -
ext/midi/midi_driver.h
r2062e48 rb511fa9 50 50 void aubio_midi_driver_settings(aubio_settings_t* settings); 51 51 52 #include " config.h"53 #if JACK_SUPPORT52 #include "aubioext.h" 53 #if HAVE_JACK 54 54 void aubio_midi_direct_output(aubio_midi_driver_t * dev, aubio_midi_event_t * event); 55 #endif 55 #endif /* HAVE_JACK */ 56 56 57 57 #endif /* _AUBIO_AUDRIVER_H */ -
src/aubio_priv.h
r2062e48 rb511fa9 33 33 */ 34 34 35 #if HAVE_CONFIG_H35 #if 1 //HAVE_CONFIG_H 36 36 #include "config.h" 37 37 #endif … … 58 58 #endif 59 59 60 #if HAVE_STRING S_H60 #if HAVE_STRING_H 61 61 #include <string.h> 62 62 #endif -
src/mathutils.c
r2062e48 rb511fa9 419 419 420 420 void aubio_cleanup(void) { 421 #if FFTW3_SUPPORT421 #if HAVE_FFTW3 422 422 fftw_cleanup(); 423 423 #else 424 #if FFTW3F_SUPPORT424 #if HAVE_FFTW3F 425 425 fftwf_cleanup(); 426 426 #endif -
src/spectral/fft.c
r2062e48 rb511fa9 24 24 #include "spectral/fft.h" 25 25 26 #if FFTW3F_SUPPORT26 #if HAVE_FFTW3F 27 27 #define fftw_malloc fftwf_malloc 28 28 #define fftw_free fftwf_free … … 35 35 #endif 36 36 37 #if FFTW3F_SUPPORT37 #if HAVE_FFTW3F 38 38 #if !AUBIO_SINGLE_PRECISION 39 39 #warning "Using aubio in double precision with fftw3 in single precision" -
src/spectral/fft.h
r2062e48 rb511fa9 32 32 33 33 #ifdef HAVE_COMPLEX_H 34 #if FFTW3F_SUPPORT34 #if HAVE_FFTW3F 35 35 #define FFTW_TYPE fftwf_complex 36 36 #else … … 38 38 #endif 39 39 #else 40 #if FFTW3F_SUPPORT40 #if HAVE_FFTW3F 41 41 /** fft data type */ 42 42 #define FFTW_TYPE float -
tests/src/test-phasevoc-jack.c
r2062e48 rb511fa9 21 21 aubio_pvoc_t * pv; 22 22 23 #ifdef JACK_SUPPORT23 #ifdef HAVE_JACK 24 24 aubio_jack_t * jack_setup; 25 25 #endif … … 43 43 printf("computed backard\n"); 44 44 45 #ifdef JACK_SUPPORT45 #ifdef HAVE_JACK 46 46 jack_setup = new_aubio_jack(channels, channels, 47 47 (aubio_process_func_t)aubio_process);
Note: See TracChangeset
for help on using the changeset viewer.