Home | History | Annotate | only in /external/chromium_org/third_party/webrtc/examples/android/opensl_loopback
Up to higher level directory
NameDateSize
AndroidManifest.xml04-Nov-2014992
build.xml04-Nov-20143.8K
fake_audio_device_buffer.cc04-Nov-20143.2K
fake_audio_device_buffer.h04-Nov-20142.4K
jni/04-Nov-2014
project.properties04-Nov-2014601
README04-Nov-20141,017
res/04-Nov-2014
src/04-Nov-2014

README

      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