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

Commit 4485d41b authored by Phil Burk's avatar Phil Burk
Browse files

aaudio: fix output bugs and improve input performance, add loopback test



Support AAUDIO_PERFORMANCE_MODE in AudioStreamRecord.cpp
Fix race condition when closing a stream, which this test revealed.
Fix setting of negative notificationFrames for non-FAST tracks.

Convert test from old Oboe API to AAudio.
Add command line options to the test.
Add systrace calls.

Bug: 34093052
Bug: 38313432
Bug: 38178592
Test: loopback.cpp
Change-Id: Ib6d2995cdd3ed432937fde2f26c5394013f0d6e0
Signed-off-by: default avatarPhil Burk <philburk@google.com>
parent feb0d87f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
include $(call all-subdir-makefiles)
+13 −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/libaaudio/include

# NDK recommends using this kind of relative path instead of an absolute path.
LOCAL_SRC_FILES:= ../src/loopback.cpp
LOCAL_SHARED_LIBRARIES := libaaudio
LOCAL_MODULE := aaudio_loopback
include $(BUILD_EXECUTABLE)
+1 −0
Original line number Diff line number Diff line
APP_CPPFLAGS += -std=c++11
+528 −0

File added.

Preview size limit exceeded, changes collapsed.

+0 −2
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