Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 330be20

Browse files
author
chenyouwei
committed
feat:初始化,增加fmod测试
1 parent 64949e4 commit 330be20

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+4699
-0
lines changed

‎.gitignore‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
/build
12+
/captures
13+
.externalNativeBuild
14+
.cxx

‎.idea/codeStyles/Project.xml‎

Lines changed: 116 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/gradle.xml‎

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/misc.xml‎

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/runConfigurations.xml‎

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/vcs.xml‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
# AudioFun
2+
3+
音频操作的尝试 fmod soundTouch

‎app/.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

‎app/CMakeLists.txt‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
cmake_minimum_required(VERSION 3.4.1)
2+
3+
# 设置加载源文件路径 my_source
4+
file(GLOB my_source src/main/cpp/*.cpp src/main/cpp/*.c src/main/cpp/*/*.cpp src/main/cpp/*/*.c)
5+
6+
# 设置变量
7+
set(FFMPEG_LIB_DIR ${CMAKE_SOURCE_DIR}/libs/${ANDROID_ABI})
8+
9+
# 查找系统库 liblog.so
10+
find_library( log-lib
11+
log)
12+
13+
# 添加库 动态导入
14+
add_library( fmod
15+
SHARED
16+
IMPORTED)
17+
18+
# 设置库路径 ANDROID_ABI 自动赋予值
19+
set_target_properties( fmod
20+
PROPERTIES IMPORTED_LOCATION
21+
${FFMPEG_LIB_DIR}/libfmod.so)
22+
23+
add_library( fmodL
24+
SHARED
25+
IMPORTED)
26+
27+
set_target_properties( fmodL
28+
PROPERTIES IMPORTED_LOCATION
29+
${FFMPEG_LIB_DIR}/libfmodL.so)
30+
31+
# 引入cpp文件
32+
add_library( fmodsound
33+
SHARED
34+
${my_source})
35+
36+
# 引入头文件
37+
include_directories(src/main/cpp/inc)
38+
39+
# 关联库
40+
target_link_libraries( fmodsound
41+
fmod
42+
fmodL
43+
${log-lib})

‎app/build.gradle‎

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 29
5+
buildToolsVersion "29.0.3"
6+
7+
defaultConfig {
8+
applicationId "com.hugh.audiofun"
9+
minSdkVersion 16
10+
targetSdkVersion 29
11+
versionCode 1
12+
versionName "1.0"
13+
14+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
15+
16+
externalNativeBuild {
17+
cmake {
18+
cppFlags "-std=c++11"
19+
}
20+
}
21+
22+
ndk {
23+
abiFilters "armeabi-v7a"
24+
}
25+
26+
}
27+
28+
buildTypes {
29+
release {
30+
minifyEnabled false
31+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
32+
}
33+
}
34+
35+
externalNativeBuild {
36+
cmake {
37+
path "CMakeLists.txt"
38+
}
39+
}
40+
sourceSets {
41+
main {
42+
jniLibs.srcDirs = ['libs']
43+
}
44+
}
45+
}
46+
47+
dependencies {
48+
implementation fileTree(dir: 'libs', include: ['*.jar'])
49+
50+
implementation 'androidx.appcompat:appcompat:1.1.0'
51+
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
52+
testImplementation 'junit:junit:4.12'
53+
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
54+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
55+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /