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

Commit 64b8787d authored by Phil Burk's avatar Phil Burk
Browse files

Oboe Examples: write_sine_threaded



These will eventually be moved to a separate repo.

Bug: 33347409
Test: these are examples that also serve as tests

Change-Id: I4c2330bb2490f55305cebcd9d3cbdfa26ee837a1
Signed-off-by: default avatarPhil Burk <philburk@google.com>
parent 2355edbc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
include $(call all-subdir-makefiles)
+6 −0
Original line number Diff line number Diff line
# include $(call all-subdir-makefiles)

# Just include static/ for now.
LOCAL_PATH := $(call my-dir)
#include $(LOCAL_PATH)/jni/Android.mk
include $(LOCAL_PATH)/static/Android.mk
+7 −0
Original line number Diff line number Diff line
# cd to this directory
mkdir -p jni/include/oboe
ln -s $PLATFORM/frameworks/av/media/liboboe/include/oboe/*.h jni/include/oboe
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
+35 −0
Original line number Diff line number Diff line
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := tests
LOCAL_C_INCLUDES := \
    $(call include-path-for, audio-utils) \
    frameworks/av/media/liboboe/include

LOCAL_SRC_FILES:= frameworks/av/media/liboboe/src/write_sine.cpp
LOCAL_SHARED_LIBRARIES := libaudioutils libmedia libtinyalsa \
        libbinder libcutils libutils
LOCAL_STATIC_LIBRARIES := libsndfile
LOCAL_MODULE := write_sine_ndk
LOCAL_SHARED_LIBRARIES += liboboe_prebuilt
include $(BUILD_EXECUTABLE)

include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := tests
LOCAL_C_INCLUDES := \
    $(call include-path-for, audio-utils) \
    frameworks/av/media/liboboe/include

LOCAL_SRC_FILES:= frameworks/av/media/liboboe/src/write_sine_threaded.cpp
LOCAL_SHARED_LIBRARIES := libaudioutils libmedia libtinyalsa \
        libbinder libcutils libutils
LOCAL_STATIC_LIBRARIES := libsndfile
LOCAL_MODULE := write_sine_threaded_ndk
LOCAL_SHARED_LIBRARIES += liboboe_prebuilt
include $(BUILD_EXECUTABLE)

include $(CLEAR_VARS)
LOCAL_MODULE := liboboe_prebuilt
LOCAL_SRC_FILES := liboboe.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_SHARED_LIBRARY)
+3 −0
Original line number Diff line number Diff line
# TODO remove then when we support other architectures
APP_ABI := arm64-v8a
APP_CPPFLAGS += -std=c++11
Loading