• Home
  • History
  • Annotate
  • only in /external/chromium_org/third_party/webrtc/examples/android/opensl_loopback/
NameDateSize

..12-Mar-20154 KiB

AndroidManifest.xml12-Mar-2015992

build.xml12-Mar-20153.8 KiB

fake_audio_device_buffer.cc12-Mar-20153.2 KiB

fake_audio_device_buffer.h12-Mar-20152.4 KiB

jni/12-Mar-20154 KiB

project.properties12-Mar-2015601

README12-Mar-20151,017

res/12-Mar-20154 KiB

src/12-Mar-20154 KiB

README

1This directory contains an app for measuring the total delay from the native
2OpenSL implementation. Note that it just loops audio back from mic to speakers.
3
4Prerequisites:
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
19Example of building & using the app:
20
21cd <path/to/repository>/trunk
22ninja -C out/Debug OpenSlDemo
23adb install -r out/Debug/OpenSlDemo-debug.apk