UstadMobile / Codec2-Android

Android library with JNI wrapper for Codec2. Uses Gradle and NDK to cross compile Codec2 (v0.8) into an AAR library for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Codec2 Android Library

This is an early version of an Android library for Codec2. It will compile Codec2's original source code for the specified android native platforms (ABIs eg x86_64, armeabi-v7a, etc) using Gradle and compile an aar file. It provides JNI intefaces that can be used to access decode Codec2 files.

Credits

This is an Android wrapper for Codec2 developed by David Rowe et. al, used under the LGPL license. See http://www.rowetel.com/?page_id=452. This project also uses elements of a previous wrapper by Ahmed Obaidi used under the LGPL license. See https://github.com/AhmedObaidi/codec2-android.

Building

By default the aar will build for x86_64 and armeabi-v7a. You can change this by changing the buildconfig. Copy buildconfig.default.properties to buildconfig.local.properties and adjust

Publish

This project uses a Maven publishing plugin. Simply use:

./gradlew libcodec2-android:publish

You can set the publishing directory property in buildconfig properties (as above) using the property repo.dir

Android API Level

Unfortunately, at the moment this library requires API 23+. This is because Android's NDK does not support compiling various complex.h math functions on prior API versions. See the Bionic Release Status for details.

About

Android library with JNI wrapper for Codec2. Uses Gradle and NDK to cross compile Codec2 (v0.8) into an AAR library for Android

License:GNU Lesser General Public License v3.0


Languages

Language:C 49.9%Language:Objective-C 25.8%Language:MATLAB 20.5%Language:Makefile 1.8%Language:CMake 0.7%Language:C++ 0.6%Language:Assembly 0.3%Language:Python 0.2%Language:Java 0.2%Language:Shell 0.1%Language:Elixir 0.0%