Csound for Android consists of the Csound library, dedicated OpenSL audio backends, a java interface, some selected plugin libraries, and some test/example applications.
The following are the required toolchain components to build Csound:
-
Android Studio: https://developer.android.com/studio/index.html.
-
Android Native Development Kit (NDK): http://developer.android.com/tools/sdk/ndk/index.html.
- CsoundAndroid: Android Csound JNI and java interface sources
- CsoundForAndroid: Android Studio projects (CsoundAndroid and CsoundAndroidExamples)
- docs: documentation
Before building, make sure ANDROID_NDK_ROOT contains the path to the installed NDK. The variable NDK_MODULE_PATH should also be set to the location of the NDK modules (libraries) that will be used in the build.
$ sh downloadDependencies.sh
$ cd ../CsoundAndroid
$ sh build.sh
Once this is run, the JNI libs are located in ./CsoundAndroid/libs and the Java sources in ./CsoundAndroid/src. These can be imported into an Android Studio project.
Alternatively, running the update.sh script updates the
CsoundAndroid project on CsoundForAndroid. This should then be
ready to be used in an Android Studio application.
Just add it as a dependency.
The release.sh can be used to create a release package containing
the CsoundForAndroid Android Studio project.