soloud
soloud copied to clipboard
how to build soloud on android?
Hi @jarikomppa
Can you please share some hints on how to build libsoloud on android (.a is preffered)? I somehow managed to get a library but when I try to stream audio... sometimes it plays but most of the time is buzzes... it also freezes the app very often.
At first I tried with the AssetsManager implementaion of SoloudFile - thinking that was the problem I copied all the files to disk (so I can use fopen)... but it's the same. I'm suspecting that the library is not build correctly (compiler flags, defines)... the procedure is very confusing (genie, cmake, sdl which I'm not using)...
I was using the OpenSL ES backend.
Also:
- on your webpage under premake it says to download genie and premake4... do I even need premake4?
- is there an Android.mk I can use to build the library?
Any help would appreciated.
I personally have no idea. Same goes for apple platforms.
Ahh, I see @neilogd added support for Android... let's home someone chimes in.
@jarikomppa FYI: the cause of buzzing/crashing is something bug in the latest code in the git repository... the stable version works perfectly (soloud_20160109.zip). Did not investigate the actual cause.
Anyway if someone if willing to add some build instruction for android it would be of great help.
Android.mk.zip I use this Android.mk/CMakeLists.txt to embed and build soloud with source code on android. I had been used fips to build a static lib libsoloud.a to use on android before, but I forgot how to do it now
I use this Android.mk/CMakeLists.txt to embed and build soloud with source code on android.
Works for me. Do you have a Version for Release/Debug/Strip?