• Home
Name Date Size #Lines LOC

..--

jni/03-May-2024-13095

res/03-May-2024-3129

src/org/webrtc/app/03-May-2024-10562

AndroidManifest.xmlD03-May-2024992 2321

READMED03-May-20241,017 2320

build.xmlD03-May-20243.8 KiB9316

fake_audio_device_buffer.ccD03-May-20243.2 KiB10879

fake_audio_device_buffer.hD03-May-20242.4 KiB6840

project.propertiesD03-May-2024601 1714

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