A Simple C++ program (and JNI library) that generates realistic engine audio samples using simple but effective techniques.
Make sure you have the following prerequisites:
- A modern C++ compiler + CMake
- SWIG (For JNI shared library)
- Android NDK (For Android JNI lib)
- SFML 3 (For C++ desktop program)
- PortAudio (For C++ desktop program)
- Lua (for making engines with unique behaviours at runtime)
git clone --recursive https://github.com/HAMM3REXTREME/EngineFiring
cd EngineFiring
- Simply run
./build.sh
to build the C++ program and the JNI shared library.
- Build Lua for Android (using the NDK), place the resulting
liblua.a
file insidelua/lib/{ANDROID_ABI}/
. - Edit
./build-android.sh
to point to your Android NDK installation path, optionally edit the target ABI. - Run
./build-android.sh
to build the JNI library, the library also requires liboboe.so, which will be built inbuild-android/oboe/
. - Place both
.so
files insideapp/src/main/jniLibs/{ANDROID_ABI}/
inside your Android project directory. Also copy the generated java files into your app.