Mercurial > almixer_isolated
comparison Isolated/SoundDecoder_Internal.h @ 69:be97ae4f30c0
Changed use of ANDROID_NDK to __ANDROID__ since it seems to be standard.
Running this dumps the #defines for me:
/usr/local/bin/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/arm-linux-androideabi-cpp -dM /dev/null
(Instructions found from http://annoyingtechnicaldetails.wordpress.com/2012/02/01/which-macros-does-the-android-ndk-gcc-define/)
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Wed, 20 Jun 2012 10:32:41 -0700 |
parents | 71b465ff0622 |
children |
comparison
equal
deleted
inserted
replaced
68:492239f6ffc9 | 69:be97ae4f30c0 |
---|---|
45 #define ERR_UNSUPPORTED_FORMAT "Unsupported codec" | 45 #define ERR_UNSUPPORTED_FORMAT "Unsupported codec" |
46 #define ERR_NULL_SAMPLE "Sound sample is NULL" | 46 #define ERR_NULL_SAMPLE "Sound sample is NULL" |
47 #define ERR_PREVIOUS_SAMPLE_ERROR "Cannot operate on sample due to previous error" | 47 #define ERR_PREVIOUS_SAMPLE_ERROR "Cannot operate on sample due to previous error" |
48 #define ERR_ALREADY_AT_EOF_ERROR "Cannot operate on sample because already at EOF" | 48 #define ERR_ALREADY_AT_EOF_ERROR "Cannot operate on sample because already at EOF" |
49 | 49 |
50 #ifdef ANDROID_NDK | 50 #ifdef __ANDROID__ |
51 | 51 |
52 /* This macro crashes when a format string is used. | 52 /* This macro crashes when a format string is used. |
53 * Provide a real function instead. | 53 * Provide a real function instead. |
54 #include <android/log.h> | 54 #include <android/log.h> |
55 #define SNDDBG(x) __android_log_print(ANDROID_LOG_INFO, "Corona", x); | 55 #define SNDDBG(x) __android_log_print(ANDROID_LOG_INFO, "Corona", x); |