Changeset 9209c79
- Timestamp:
- Mar 27, 2014, 7:56:11 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:
- 4a17757
- Parents:
- dba9b33
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/sink.c
rdba9b33 r9209c79 24 24 #include "fmat.h" 25 25 #include "io/sink.h" 26 #ifdef __APPLE__26 #ifdef HAVE_SINK_APPLE_AUDIO 27 27 #include "io/sink_apple_audio.h" 28 #endif /* __APPLE__*/28 #endif /* HAVE_SINK_APPLE_AUDIO */ 29 29 #ifdef HAVE_SNDFILE 30 30 #include "io/sink_sndfile.h" … … 57 57 aubio_sink_t * new_aubio_sink(char_t * uri, uint_t samplerate) { 58 58 aubio_sink_t * s = AUBIO_NEW(aubio_sink_t); 59 #ifdef __APPLE__59 #ifdef HAVE_SINK_APPLE_AUDIO 60 60 s->sink = (void *)new_aubio_sink_apple_audio(uri, samplerate); 61 61 if (s->sink) { … … 70 70 return s; 71 71 } 72 #endif /* __APPLE__*/72 #endif /* HAVE_SINK_APPLE_AUDIO */ 73 73 #if HAVE_SNDFILE 74 74 s->sink = (void *)new_aubio_sink_sndfile(uri, samplerate); -
src/io/sink_apple_audio.c
rdba9b33 r9209c79 21 21 #include "config.h" 22 22 23 #ifdef __APPLE__23 #ifdef HAVE_SINK_APPLE_AUDIO 24 24 25 25 #include "aubio_priv.h" … … 267 267 } 268 268 269 #endif /* __APPLE__*/269 #endif /* HAVE_SINK_APPLE_AUDIO */ -
src/io/source.c
rdba9b33 r9209c79 27 27 #include "io/source_avcodec.h" 28 28 #endif /* HAVE_LIBAV */ 29 #ifdef __APPLE__29 #ifdef HAVE_SOURCE_APPLE_AUDIO 30 30 #include "io/source_apple_audio.h" 31 #endif /* __APPLE__*/31 #endif /* HAVE_SOURCE_APPLE_AUDIO */ 32 32 #ifdef HAVE_SNDFILE 33 33 #include "io/source_sndfile.h" … … 71 71 } 72 72 #endif /* HAVE_LIBAV */ 73 #ifdef __APPLE__73 #ifdef HAVE_SOURCE_APPLE_AUDIO 74 74 s->source = (void *)new_aubio_source_apple_audio(uri, samplerate, hop_size); 75 75 if (s->source) { … … 83 83 return s; 84 84 } 85 #endif /* __APPLE__*/85 #endif /* HAVE_SOURCE_APPLE_AUDIO */ 86 86 #if HAVE_SNDFILE 87 87 s->source = (void *)new_aubio_source_sndfile(uri, samplerate, hop_size); -
src/io/source_apple_audio.c
rdba9b33 r9209c79 19 19 */ 20 20 21 #ifdef __APPLE__22 21 #include "config.h" 22 23 #ifdef HAVE_SOURCE_APPLE_AUDIO 24 23 25 #include "aubio_priv.h" 24 26 #include "fvec.h" … … 303 305 } 304 306 305 #endif /* __APPLE__*/307 #endif /* HAVE_SOURCE_APPLE_AUDIO */ -
src/io/utils_apple_audio.c
rdba9b33 r9209c79 1 #ifdef __APPLE__ 1 #include "config.h" 2 3 #if defined(HAVE_SOURCE_APPLE_AUDIO) || defined(HAVE_SINK_APPLE_AUDIO) 2 4 3 5 // CFURLRef, CFURLCreateWithFileSystemPath, ... … … 53 55 } 54 56 55 #endif /* __APPLE__*/57 #endif /* defined(HAVE_SOURCE_APPLE_AUDIO) || defined(HAVE_SINK_APPLE_AUDIO) */ -
wscript
rdba9b33 r9209c79 106 106 ctx.env.CFLAGS += ['-arch', 'i386', '-arch', 'x86_64'] 107 107 ctx.env.LINKFLAGS += ['-arch', 'i386', '-arch', 'x86_64'] 108 109 if target_platform in [ 'darwin', 'ios', 'iosimulator']: 108 110 ctx.env.FRAMEWORK = ['CoreFoundation', 'AudioToolbox', 'Accelerate'] 111 ctx.define('HAVE_SOURCE_APPLE_AUDIO', 1) 112 ctx.define('HAVE_SINK_APPLE_AUDIO', 1) 109 113 ctx.define('HAVE_ACCELERATE', 1) 110 114 111 115 if target_platform in [ 'ios', 'iosimulator' ]: 112 ctx.define('HAVE_ACCELERATE', 1)113 116 ctx.define('TARGET_OS_IPHONE', 1) 114 ctx.env.FRAMEWORK = ['CoreFoundation', 'AudioToolbox', 'Accelerate']115 117 SDKVER="7.0" 116 118 MINSDKVER="6.1"
Note: See TracChangeset
for help on using the changeset viewer.