Changeset 549928e
- Timestamp:
- Dec 10, 2013, 2:30:42 PM (11 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:
- ab41f5c
- Parents:
- eb99982
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source.c
reb99982 r549928e 24 24 #include "fmat.h" 25 25 #include "io/source.h" 26 #ifdef HAVE_ AVCODEC26 #ifdef HAVE_LIBAV 27 27 #include "io/source_avcodec.h" 28 #endif /* HAVE_ AVCODEC*/28 #endif /* HAVE_LIBAV */ 29 29 #ifdef __APPLE__ 30 30 #include "io/source_apple_audio.h" … … 53 53 aubio_source_t * new_aubio_source(char_t * uri, uint_t samplerate, uint_t hop_size) { 54 54 aubio_source_t * s = AUBIO_NEW(aubio_source_t); 55 #if HAVE_ AVCODEC55 #if HAVE_LIBAV 56 56 s->source = (void *)new_aubio_source_avcodec(uri, samplerate, hop_size); 57 57 if (s->source) { … … 64 64 return s; 65 65 } 66 #endif /* HAVE_ AVCODEC*/66 #endif /* HAVE_LIBAV */ 67 67 #ifdef __APPLE__ 68 68 s->source = (void *)new_aubio_source_apple_audio(uri, samplerate, hop_size); -
src/io/source_avcodec.c
reb99982 r549928e 22 22 #include "config.h" 23 23 24 #ifdef HAVE_ AVCODEC24 #ifdef HAVE_LIBAV 25 25 26 26 #include <sndfile.h> … … 403 403 } 404 404 405 #endif /* HAVE_ SNDFILE*/405 #endif /* HAVE_LIBAV */ -
wscript
reb99982 r549928e 214 214 ctx.check_cfg(package = 'libavresample', atleast_version = '1.0.1', 215 215 args = '--cflags --libs', uselib_store = 'AVRESAMPLE', mandatory = False) 216 if all ( 'HAVE_' + i in ctx.env.define_key 217 for i in ['AVCODEC', 'AVFORMAT', 'AVUTIL', 'AVRESAMPLE'] ): 218 ctx.define('HAVE_LIBAV', 1) 219 ctx.msg('Checking for all libav libraries', 'yes') 220 else: 221 ctx.msg('Checking for all libav libraries', 'not found', color = 'YELLOW') 216 222 217 223 # use memcpy hacks
Note: See TracChangeset
for help on using the changeset viewer.