├── jni ├── Application.mk ├── Android.mk ├── native-audio-jni.c ├── hello_clip.h └── android_clip.h ├── .gitignore ├── res ├── drawable │ └── icon.png ├── values │ └── strings.xml └── layout │ └── main.xml ├── project.properties ├── AndroidManifest.xml ├── README.md ├── src └── com │ └── example │ └── nativeaudio │ └── NativeAudio.java └── LICENSE /jni/Application.mk: -------------------------------------------------------------------------------- 1 | APP_ABI := all -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | libs/ 2 | obj/ 3 | bin/ 4 | -------------------------------------------------------------------------------- /res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Over17/AndroidAudioFastPathSample/HEAD/res/drawable/icon.png -------------------------------------------------------------------------------- /project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Indicates whether an apk should be generated for each density. 14 | split.density=false 15 | # Project target. 16 | target=android-23 17 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | Hello, Android using native audio! 22 | NativeAudio 23 | 24 | -------------------------------------------------------------------------------- /jni/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2010 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # 15 | LOCAL_PATH := $(call my-dir) 16 | 17 | include $(CLEAR_VARS) 18 | 19 | LOCAL_MODULE := native-audio-jni 20 | LOCAL_SRC_FILES := native-audio-jni.c 21 | # for native audio 22 | LOCAL_LDLIBS += -lOpenSLES 23 | # for logging 24 | LOCAL_LDLIBS += -llog 25 | # for native asset manager 26 | LOCAL_LDLIBS += -landroid 27 | 28 | include $(BUILD_SHARED_LIBRARY) 29 | -------------------------------------------------------------------------------- /res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 25 | 30 | 35 |