-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Android native sound fix and update openal-soft to 1.21.1 #1475
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
Android native sound fix and update openal-soft to 1.21.1 #1475
Conversation
Resync fork
Update fork
… in the atlases instead of setting a predefined byte buffer on disposal that made all atlases in the backend use the same buffer and generated rendering issues.
Fork update
…d more images to the screens so it really uses more atlases
Update fork PR
Update fork
…loading fail and no sound on android Fixed bad path check in openalsoft.gradle Updated openal-soft to 1.17.2 and added related required defines in config.h
Included new required header files Updated target platform to android-19 (previous just don't link)
Thanks, @joliver82 By the way, what is |
bsinc_inc.h is an autogenerated header file for openal-soft 1.19.1 (see commit joliver82@fc99412) for 1.21.1 is useless and I've just removed it |
Well, you bumped the Target Version from 9 to 19, so that certainly requires a more recent NDK. jmonkeyengine/.github/workflows/main.yml Line 64 in fc8128c
This is something that may even fix the compiler issues. I mean the compiler shouldn't like change values into -1 randomly. Regarding the build failures, the first one is |
Android api level 19 stands for kitkat 4.4 which was released on 2013 so I assume riccardobl's image is new enough to support it. I agree that it would be better to properly fix this keeping optimizations enabled but I'm not that good at C/C++ and I didn't want to change code from external libraries (the issues are located at tremor and openal-soft) About C++14, if setting any -str=c++* flag ndk-build fails because there're plain C files (com_jme3_*.c) in the same library, that's why I didn't. Also it compiled properly in ndk 22 EDIT: the line 148 at ndk-build is caused because "file" is not installed in the docker image: The ndk in the image is 20.0.5594570, in fact updating the ndk succeeded to compile it. I've been reading about this and although c++14 is supported and is clang's default, it was not working this way in ndk till r21: https://github.com/android/ndk/wiki/Changelog-r21 it would be great if @riccardobl could just rebuild the riccardoblb/buildenv-jme3:android docker image so we would use latest ndk to build jme3 android natives (and also add file package to avoid the ndk line 148 error) |
I am not familiar with JME's build env but can this be configured from https://github.com/jMonkeyEngine/buildenv-jme3? And about this: jmonkeyengine/.github/workflows/main.yml Line 64 in fc8128c
Should we change it to use |
Yes. It should be changed to |
I just changed it. The image was built 12 days ago, so it should have latest ndk and compile properly |
Well it is based on https://github.com/jMonkeyEngine/buildenv-jme3/blob/f6a80d1bf5ae39746b84b2391d9ebb28135b3168/android/Dockerfile, so it should be recent enough |
Note that |
Not a real issue, but I'll add file package to the docker image later |
Thanks |
Is this PR ready to be integrated? |
Created a PR for buildenv to fix this (jMonkeyEngine/buildenv-jme3#1)
From my point of view, it is |
This PR fixes issue #1239 (both sound not working and ogg files not loaded).
Also this PR updates openal-soft to latest (1.21.1).
EDIT: I saw it's failing to compile. Maybe this is caused by an old release of the ndk, I'm using latest (22)