Git Product home page Git Product logo

sonic-ndk's Introduction

This is the libsonic Android NDK wrapper.  I, Bill Cox, wrote it in 2011, with
the exception of AndroidAudioDevice.java, which was written by Mario Zechner,
who posted it on his blog at

    http://www.badlogicgames.com/wordpress/?p=228

Mario has given me permission to place this code into the public domain as well.
I place all of the files created for this project into the public domain.
However, the files sonic.c and sonic.h are from the Vinux "sonic" package and
are licensed under GNU Lesser General Public License version 2.1. You can freely
use this NDK application with your commercial application, but if you make
changes to sonic.c or sonic.h, those changes must be shared as described in the
file COPYING.

Note: While this code works well, maintaining JNI wrapped C code in your Java
project will be painful.  There in the main sonic project, there is Sonic.java,
which is a pure Java port of the sonic algorithm.  The main sonic repo is at:

    https://github.com/waywardgeek/sonic

I recently pulled a patch from the main sonic repo that fixes some bugs in this
version.  I release all the code in that patch to the public domain as well.
For users who need an actual license, the main repo is licensed under Apache 2.0.
If you need some other license, just drop me an email.  My intent is to make
this algorithm free software to all who want it, for any purpose whatsoever.

Installing into your Android app
--------------------------------

Unfortunately, Android makes sharing code very hard.  The simplest way to use
Sonic in your app is to import the Sonic class into your Eclipse project, and to
import the sonic-ndk/libs directory into your apps libs directory.  To import
the Sonic class, use Import->File System, set "From directory: to
sonic-ndk/src", and "Into folder" to your src direcory.  After you've imported
the sonic source, delete the two uneeded files from your project, which are:

src/org/vinuxproject/SonicTest.java
src/org/vinuxproject/AndroidAudioDevice.java

If you don't have a libs directory in your project yet, create it using Eclipse.
Then, import the libs directory from sonic-ndk into your libs directory.

sonic-ndk's People

Contributors

waywardgeek avatar sbahram avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.