Easily compile Tremolo for Android for Castle Game Engine
"Tremolo" is (simplifying a little) a fast native library to read OggVorbis on Android. See http://wss.co.uk/pinknoise/tremolo/ for the details.
This repository allows to easily recompile Tremolo and copy the result over the Castle Game Engine sources. It assumes:
You have installed Android NDK, and
ndk-buildis on $PATH.
The source code of Castle Game Engine is in
Then just run
make build .
It will recompile the library for the appropriate Android versions and architectures -- the ones used by Castle Game Engine.
It is possible to alternatively use a low-precision version of Tremolo.
libtremolo.so, you would take
The low precision version may be faster,
although the quality is very bad in my tests.
You can use these libraries with Castle Game Engine "ogg_vorbis" component (see https://github.com/castle-engine/castle-engine/wiki/Android-Project-Components-Integrated-with-Castle-Game-Engine#ogg_vorbis ).
The source code here is taken from Tremolo 0.08 release,
The idea to arrange it like this, to easily compile using NDK,
is from http://repo.or.cz/openal-soft/android.git .
Michalis only did some tiny changes to
Android.mk to easily compile
both shared libraries.