-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Android 16kb openalsoft update #2552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
joliver82
wants to merge
20
commits into
jMonkeyEngine:master
Choose a base branch
from
joliver82:android-16kb-openalsoft-update
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+158
−102
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
28f509d
Update GLImageFormats.java
joliver82 71fcaa9
Merge remote-tracking branch 'upstream/master'
joliver82 4f8a2cc
Merge pull request #3 from jMonkeyEngine/master
joliver82 05db003
Merge pull request #4 from jMonkeyEngine/master
joliver82 18b431f
Modified JmeBatchRenderBackend to clear the inner buffer of the image…
38e330b
Merge pull request #5 from jMonkeyEngine/master
joliver82 f9282c1
First impl of testcasefor multiple atlases issue. Still missing to ad…
joliver82 9d8cbfa
Merge pull request #7 from jMonkeyEngine/master
joliver82 2a6ca82
Merge branch 'nifty-batch-fix' into master
joliver82 0569a0a
Merge remote-tracking branch 'upstream/master'
8a90e91
Manual merge pending stuff from jme3 base
1092b80
Manual merge
066ba48
Merge pull request #9 from jMonkeyEngine/master
joliver82 6a4b4d2
Merge pull request #10 from jMonkeyEngine/master
joliver82 2800a92
Merge branch 'jMonkeyEngine:master' into master
joliver82 62f5398
Merge branch 'jMonkeyEngine:master' into master
joliver82 0248d8e
Merge branch 'jMonkeyEngine:master' into master
joliver82 d95b31a
Updated openalsoft based on NGEngine and set ANDROID_SUPPORT_FLEXIBLE…
605866a
Changed docker image to build android natives to ghcr.io/cirruslabs/a…
be712c7
Changed github actions to install cmake in docker image and properly …
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
jme3-android-native/src/native/jme_decode/com_jme3_audio_plugins_NativeVorbisFile.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#include <unistd.h> | ||
#include <stdlib.h> | ||
#include <errno.h> | ||
#include <string.h> | ||
|
||
#include "Tremor/ivorbisfile.h" | ||
|
||
|
134 changes: 40 additions & 94 deletions
134
jme3-android-native/src/native/jme_openalsoft/Android.mk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,103 +1,49 @@ | ||||||
TARGET_PLATFORM := android-19 | ||||||
# jni/Android.mk | ||||||
|
||||||
LOCAL_PATH := $(call my-dir) | ||||||
|
||||||
include $(CLEAR_VARS) | ||||||
|
||||||
LOCAL_MODULE := openalsoftjme | ||||||
|
||||||
LOCAL_C_INCLUDES += $(LOCAL_PATH) $(LOCAL_PATH)/include \ | ||||||
$(LOCAL_PATH)/alc $(LOCAL_PATH)/common | ||||||
# require the path to cmake-build-<ABI> | ||||||
ifndef OPENALSOFT_BUILD_ROOT | ||||||
$(error OPENALSOFT_BUILD_ROOT not set! pass it via ndk-build OPENALSOFT_BUILD_ROOT=/path/to/cmake-build-root) | ||||||
endif | ||||||
|
||||||
LOCAL_CPP_FEATURES += exceptions | ||||||
# assemble the path to this ABI's .a | ||||||
OPENAL_PREBUILT_DIR := $(OPENALSOFT_BUILD_ROOT)/cmake-build-$(TARGET_ARCH_ABI) | ||||||
|
||||||
LOCAL_CFLAGS := -ffast-math -DAL_BUILD_LIBRARY -DAL_ALEXT_PROTOTYPES -fcommon -O0 -DRESTRICT="" | ||||||
LOCAL_LDLIBS := -lOpenSLES -llog -Wl,-s | ||||||
# ----------------------------------------------------------------------------- | ||||||
# 1) prebuilt static library | ||||||
include $(CLEAR_VARS) | ||||||
LOCAL_MODULE := openalsoft_prebuilt | ||||||
LOCAL_SRC_FILES := $(OPENAL_PREBUILT_DIR)/libopenal.a | ||||||
LOCAL_EXPORT_C_INCLUDES := $(OPENALSOFT_BUILD_ROOT)/include | ||||||
include $(PREBUILT_STATIC_LIBRARY) | ||||||
|
||||||
LOCAL_SRC_FILES := al/auxeffectslot.cpp \ | ||||||
al/buffer.cpp \ | ||||||
al/effect.cpp \ | ||||||
al/effects/autowah.cpp \ | ||||||
al/effects/chorus.cpp \ | ||||||
al/effects/compressor.cpp \ | ||||||
al/effects/convolution.cpp \ | ||||||
al/effects/dedicated.cpp \ | ||||||
al/effects/distortion.cpp \ | ||||||
al/effects/echo.cpp \ | ||||||
al/effects/equalizer.cpp \ | ||||||
al/effects/fshifter.cpp \ | ||||||
al/effects/modulator.cpp \ | ||||||
al/effects/null.cpp \ | ||||||
al/effects/pshifter.cpp \ | ||||||
al/effects/reverb.cpp \ | ||||||
al/effects/vmorpher.cpp \ | ||||||
al/error.cpp \ | ||||||
al/event.cpp \ | ||||||
al/extension.cpp \ | ||||||
al/filter.cpp \ | ||||||
al/listener.cpp \ | ||||||
al/source.cpp \ | ||||||
al/state.cpp \ | ||||||
alc/alc.cpp \ | ||||||
alc/alconfig.cpp \ | ||||||
alc/alu.cpp \ | ||||||
alc/backends/base.cpp \ | ||||||
alc/backends/loopback.cpp \ | ||||||
alc/backends/null.cpp \ | ||||||
alc/backends/opensl.cpp \ | ||||||
alc/backends/wave.cpp \ | ||||||
alc/bformatdec.cpp \ | ||||||
alc/buffer_storage.cpp \ | ||||||
alc/converter.cpp \ | ||||||
alc/effects/autowah.cpp \ | ||||||
alc/effects/chorus.cpp \ | ||||||
alc/effects/compressor.cpp \ | ||||||
alc/effects/convolution.cpp \ | ||||||
alc/effects/dedicated.cpp \ | ||||||
alc/effects/distortion.cpp \ | ||||||
alc/effects/echo.cpp \ | ||||||
alc/effects/equalizer.cpp \ | ||||||
alc/effects/fshifter.cpp \ | ||||||
alc/effects/modulator.cpp \ | ||||||
alc/effects/null.cpp \ | ||||||
alc/effects/pshifter.cpp \ | ||||||
alc/effects/reverb.cpp \ | ||||||
alc/effects/vmorpher.cpp \ | ||||||
alc/effectslot.cpp \ | ||||||
alc/helpers.cpp \ | ||||||
alc/hrtf.cpp \ | ||||||
alc/panning.cpp \ | ||||||
alc/uiddefs.cpp \ | ||||||
alc/voice.cpp \ | ||||||
common/alcomplex.cpp \ | ||||||
common/alfstream.cpp \ | ||||||
common/almalloc.cpp \ | ||||||
common/alstring.cpp \ | ||||||
common/dynload.cpp \ | ||||||
common/polyphase_resampler.cpp \ | ||||||
common/ringbuffer.cpp \ | ||||||
common/strutils.cpp \ | ||||||
common/threads.cpp \ | ||||||
core/ambdec.cpp \ | ||||||
core/bs2b.cpp \ | ||||||
core/bsinc_tables.cpp \ | ||||||
core/cpu_caps.cpp \ | ||||||
core/devformat.cpp \ | ||||||
core/except.cpp \ | ||||||
core/filters/biquad.cpp \ | ||||||
core/filters/nfc.cpp \ | ||||||
core/filters/splitter.cpp \ | ||||||
core/fmt_traits.cpp \ | ||||||
core/fpu_ctrl.cpp \ | ||||||
core/logging.cpp \ | ||||||
core/mastering.cpp \ | ||||||
core/mixer/mixer_c.cpp \ | ||||||
core/uhjfilter.cpp \ | ||||||
com_jme3_audio_android_AndroidAL.c \ | ||||||
com_jme3_audio_android_AndroidALC.c \ | ||||||
com_jme3_audio_android_AndroidEFX.c | ||||||
# ----------------------------------------------------------------------------- | ||||||
# 2) your JNI wrapper | ||||||
include $(CLEAR_VARS) | ||||||
LOCAL_MODULE := openalsoftjme | ||||||
LOCAL_SRC_FILES := \ | ||||||
com_jme3_audio_android_AndroidAL.c \ | ||||||
com_jme3_audio_android_AndroidALC.c \ | ||||||
com_jme3_audio_android_AndroidEFX.c | ||||||
|
||||||
LOCAL_C_INCLUDES += \ | ||||||
$(LOCAL_PATH) \ | ||||||
$(LOCAL_PATH)/include \ | ||||||
$(LOCAL_PATH)/alc \ | ||||||
$(LOCAL_PATH)/common | ||||||
|
||||||
LOCAL_CPP_FEATURES := exceptions rtti | ||||||
LOCAL_CFLAGS := -ffast-math \ | ||||||
-DAL_ALEXT_PROTOTYPES \ | ||||||
-fcommon \ | ||||||
-O0 \ | ||||||
-DRESTRICT="" \ | ||||||
-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=true | ||||||
|
||||||
LOCAL_LDLIBS := -lOpenSLES -llog -Wl,-s -lc++_shared | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
LOCAL_STATIC_LIBRARIES := openalsoft_prebuilt | ||||||
# (or LOCAL_WHOLE_STATIC_LIBRARIES if you need every object pulled in) | ||||||
|
||||||
include $(BUILD_SHARED_LIBRARY) | ||||||
|
||||||
# Alc/mixer/hrtf_inc.c \ | ||||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.