henrike@webrtc.org | 1fdc51a | 2013-10-02 14:58:19 +0000 | [diff] [blame^] | 1 | This directory contains an app for measuring the total delay from the native |
| 2 | OpenSL implementation. Note that it just loops audio back from mic to speakers. |
| 3 | |
| 4 | Prerequisites: |
| 5 | - Make sure gclient is checking out tools necessary to target Android: your |
| 6 | .gclient file should contain a line like: |
| 7 | target_os = ['android'] |
| 8 | Make sure to re-run gclient sync after adding this to download the tools. |
| 9 | - Env vars need to be set up to target Android; easiest way to do this is to run |
| 10 | (from the libjingle trunk directory): |
| 11 | . ./build/android/envsetup.sh |
| 12 | Note that this clobbers any previously-set $GYP_DEFINES so it must be done |
| 13 | before the next item. |
| 14 | - Set up webrtc-related GYP variables: |
| 15 | export GYP_DEFINES="$GYP_DEFINES java_home=</path/to/JDK> |
| 16 | enable_android_opensl=1" |
| 17 | - Finally, run "gclient runhooks" to generate Android-targeting .ninja files. |
| 18 | |
| 19 | Example of building & using the app: |
| 20 | |
| 21 | cd <path/to/repository>/trunk |
| 22 | ninja -C out/Debug OpenSlDemo |
| 23 | adb install -r out/Debug/OpenSlDemo-debug.apk |