Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2c4a985 authored by Phil Burk's avatar Phil Burk
Browse files

aaudio: update README for examples

Update write_sine for better build instructions.
Add similar README for aaudio_loopback.

Bug: 221108715
Test: Follow instructions in README files. The test should run.
Change-Id: I6e8ce38fad997b6f5cce59dbeb31d828b2ad4635
parent a56a15f2
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
# to run the loopback test from the command line
{cd to top of the repo}
mmma frameworks/av/media/libaaudio/examples/
adb root
adb remount -R
adb push $OUT/data/nativetest/aaudio_loopback/aaudio_loopback /data/aaudio_loopback
adb shell /data/aaudio_loopback -?
+10 −7
Original line number Diff line number Diff line
# cd to this directory
mkdir -p jni/include/aaudio
ln -s $PLATFORM/frameworks/av/media/liboboe/include/aaudio/*.h jni/include/aaudio
ln -s $PLATFORM/out/target/product/$TARGET_PRODUCT/symbols/out/soong/ndk/platforms/android-current/arch-arm64/usr/lib/liboboe.so jni
$NDK/ndk-build
adb push libs/arm64-v8a/write_sine_threaded /data
adb shell /data/write_sine_threaded
# to run write_sine examples from the command line
{cd to top of the repo}
mmma frameworks/av/media/libaaudio/examples/
adb root
adb remount -R
adb push $OUT/data/nativetest/write_sine/write_sine /data/write_sine
adb shell /data/write_sine -?

adb push $OUT/data/nativetest/write_sine_callback/write_sine_callback /data/write_sine_callback
adb shell /data/write_sine_callback -?