Skip to content
Easily compile Tremolo as a shared library using Android NDK
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
jni
.gitignore
AndroidManifest.xml
LICENSE.txt
Makefile
README.md

README.md

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-build is on $PATH.

  • The source code of Castle Game Engine is in $CASTLE_ENGINE_PATH.

Then just run make build .

It will recompile the library for the appropriate Android versions and architectures -- the ones used by Castle Game Engine.

Low-precision version

It is possible to alternatively use a low-precision version of Tremolo. Instead of libtremolo.so, you would take libtremolo-low-precision.so. The low precision version may be faster, although the quality is very bad in my tests.

CGE

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 ).

Credits

The source code here is taken from Tremolo 0.08 release, http://wss.co.uk/pinknoise/tremolo/Tremolo008.zip . 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.

You can’t perform that action at this time.