-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAndroidAudioTest.diff
164 lines (145 loc) · 5.8 KB
/
AndroidAudioTest.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
Index: src/voice_engine/main/source/Android.mk
===================================================================
--- src/voice_engine/main/source/Android.mk (revision 2251)
+++ src/voice_engine/main/source/Android.mk (working copy)
@@ -26,7 +26,6 @@
level_indicator.cc \
monitor_module.cc \
output_mixer.cc \
- ref_count.cc \
shared_data.cc \
statistics.cc \
transmit_mixer.cc \
Index: src/voice_engine/main/source/voe_base_impl.cc
===================================================================
--- src/voice_engine/main/source/voe_base_impl.cc (revision 2251)
+++ src/voice_engine/main/source/voe_base_impl.cc (working copy)
@@ -1269,7 +1269,7 @@
WebRtc_Word32 VoEBaseImpl::AddBuildInfo(char* str) const
{
- return sprintf(str, "Build: svn:%s %s\n", WEBRTC_SVNREVISION, BUILDINFO);
+ return sprintf(str, "Build: svn:%s %s\n", 1, BUILDINFO);
}
WebRtc_Word32 VoEBaseImpl::AddVoEVersion(char* str) const
Index: src/voice_engine/main/test/android/android_test/default.properties
===================================================================
--- src/voice_engine/main/test/android/android_test/default.properties (revision 2251)
+++ src/voice_engine/main/test/android/android_test/default.properties (working copy)
@@ -1,11 +1,2 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system use,
-# "build.properties", and override values to adapt the script to your
-# project structure.
-
-# Project target, OpenSL ES requires API level 9
-target=android-9
+# Project target.
+target=android-15
Index: src/voice_engine/main/test/android/android_test/jni/Android.mk
===================================================================
--- src/voice_engine/main/test/android/android_test/jni/Android.mk (revision 2251)
+++ src/voice_engine/main/test/android/android_test/jni/Android.mk (working copy)
@@ -57,7 +57,7 @@
libwebrtc_agc \
libwebrtc_aec \
libwebrtc_aecm \
- libwebrtc_system_wrappers \
+ libwebrtc_system_wrappers
LOCAL_SHARED_LIBRARIES := \
libcutils \
@@ -65,7 +65,7 @@
LOCAL_LDLIBS := \
-lgcc \
- -llog
+ -llog
LOCAL_PRELINK_MODULE := false
@@ -108,20 +108,17 @@
LOCAL_LDLIBS := \
-lgcc \
-llog \
- -lOpenSLES
+ -lOpenSLES
LOCAL_PRELINK_MODULE := false
include $(BUILD_SHARED_LIBRARY)
-###
-include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/voice_engine/main/test/cmd_test/Android.mk
+include $(CLEAR_VARS)
+LOCAL_PATH := /home/luke/webrtcproj/trunk/src/voice_engine/main/test/android/android_test/jni/
-else
-LOCAL_PATH := $(call my-dir)
-
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := tests
@@ -136,17 +133,21 @@
$(LOCAL_PATH)/../../../auto_test \
$(LOCAL_PATH)/../../../../interface \
$(LOCAL_PATH)/../../../../../.. \
- $(LOCAL_PATH)/../../../../../../system_wrappers/interface
+ $(LOCAL_PATH)/../../../../../../system_wrappers/interface \
+ $(LOCAL_PATH)/../../../../../../testing/gtest/include
LOCAL_PRELINK_MODULE := false
LOCAL_SHARED_LIBRARIES := \
libutils \
- libstlport \
libandroid \
- libwebrtc \
- libGLESv2
+ libGLESv2 \
+ libstlport_shared \
+ libwebrtc-voice-jni
+LOCAL_LDLIBS := \
+ -llog
+
include $(BUILD_SHARED_LIBRARY)
endif
Index: src/voice_engine/main/test/android/android_test/jni/Application.mk
===================================================================
--- src/voice_engine/main/test/android/android_test/jni/Application.mk (revision 2251)
+++ src/voice_engine/main/test/android/android_test/jni/Application.mk (working copy)
@@ -7,5 +7,7 @@
# be found in the AUTHORS file in the root of the source tree.
# Build both ARMv5TE and ARMv7-A machine code.
-APP_ABI := armeabi armeabi-v7a x86
+APP_ABI := armeabi armeabi-v7a x86
+APP_PLATFORM := android-9
+APP_CPPFLAGS += -fno-rtti
APP_STL := stlport_shared
Index: src/voice_engine/main/test/android/android_test/.classpath
===================================================================
--- src/voice_engine/main/test/android/android_test/.classpath (revision 2251)
+++ src/voice_engine/main/test/android/android_test/.classpath (working copy)
@@ -1,7 +1,8 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="src" path="gen"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="gen"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
+ <classpathentry kind="output" path="bin/classes"/>
+</classpath>
Index: src/voice_engine/main/test/android/android_test/src/org/webrtc/voiceengine/test/AndroidTest.java
===================================================================
--- src/voice_engine/main/test/android/android_test/src/org/webrtc/voiceengine/test/AndroidTest.java (revision 2251)
+++ src/voice_engine/main/test/android/android_test/src/org/webrtc/voiceengine/test/AndroidTest.java (working copy)
@@ -1176,6 +1176,11 @@
* at installation time by the package manager.
*/
static {
+ System.loadLibrary("stlport_shared");
+ Log.d("*Webrtc*", "Loading webrtc_audio_preprocessing...");
+ System.loadLibrary("webrtc_audio_preprocessing");
+ Log.d("*Webrtc*", "Loading webrtc-voice-jni...");
+ System.loadLibrary("webrtc-voice-jni");
Log.d("*Webrtc*", "Loading webrtc-voice-demo-jni...");
System.loadLibrary("webrtc-voice-demo-jni");