diff options
Diffstat (limited to 'media/tests/audiotests')
-rw-r--r-- | media/tests/audiotests/Android.mk | 22 | ||||
-rw-r--r-- | media/tests/audiotests/shared_mem_test.cpp | 6 |
2 files changed, 13 insertions, 15 deletions
diff --git a/media/tests/audiotests/Android.mk b/media/tests/audiotests/Android.mk index 69f0bb5..794e7f22 100644 --- a/media/tests/audiotests/Android.mk +++ b/media/tests/audiotests/Android.mk @@ -1,21 +1,23 @@ -ifeq ($(TARGET_ARCH),arm) LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE:= shared_mem_test + LOCAL_SRC_FILES := \ - shared_mem_test.cpp + shared_mem_test.cpp + LOCAL_SHARED_LIBRARIES := \ - libc \ - libcutils \ - libutils \ - libbinder \ - libhardware_legacy \ - libmedia + libc \ + libcutils \ + libutils \ + libbinder \ + libhardware_legacy \ + libmedia + LOCAL_MODULE_TAGS := tests -include $(BUILD_EXECUTABLE) +LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code -endif +include $(BUILD_EXECUTABLE) diff --git a/media/tests/audiotests/shared_mem_test.cpp b/media/tests/audiotests/shared_mem_test.cpp index 992c900..2f57499 100644 --- a/media/tests/audiotests/shared_mem_test.cpp +++ b/media/tests/audiotests/shared_mem_test.cpp @@ -133,12 +133,8 @@ int AudioTrackTest::Test01() { ************************************************************/ void AudioTrackTest::Generate(short *buffer, long bufferSz, long amplitude, unsigned long &phi, long dPhi) { - long pi13 = 25736; // 2^13*pi // fill buffer for(int i0=0; i0<bufferSz; i0++) { - long sample; - long l0, l1; - buffer[i0] = ComputeSine( amplitude, phi); phi += dPhi; } @@ -210,7 +206,7 @@ int main() { * global main * ************************************************************/ -int main(int argc, char *argv[]) { +int main() { return android::main(); } |