audio: add JNI AudioAttribute helper class
-Factorize code between AudioRecord & AudioTrack
-Prevent memory leak
Test: Audio capture and playback smoke tests
Change-Id: I06a06cd607754fbbc3e74dd38a66994873c8d9d1
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
diff --git a/core/jni/Android.bp b/core/jni/Android.bp
index 0466aaa..9afd5d0 100644
--- a/core/jni/Android.bp
+++ b/core/jni/Android.bp
@@ -166,6 +166,7 @@
"android_media_AudioRecord.cpp",
"android_media_AudioSystem.cpp",
"android_media_AudioTrack.cpp",
+ "android_media_AudioAttributes.cpp",
"android_media_DeviceCallback.cpp",
"android_media_JetPlayer.cpp",
"android_media_MediaMetricsJNI.cpp",