Code Monkey home page Code Monkey 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

sbahram avatar waywardgeek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sonic-ndk's Issues

how can i to control the audio play position??

as i know the android media player can do that , it have a seek to method. but if i change it to audio track for play the audio file, i can not support the seek to . the Android Osplayer also use the sonic , but it support that. ok. the question is how can i use your sonic for control the audio position (time) with seek bar .?
Thanks. (http://dev.vinux-project.org/sonic/)

how give voice or file to this library?

hi dear.
im not found any refrence to give file to this library .
just found an file .bin .. and i not understand that what is?? :-s

so please say me how convert files to .bin

libSonic for iOS

Hey. Did anyone port it to iOS ( Swift or Obj-C) ? Or is there any related lib to this written in Swift?

Unsatisfied Link Error

Dears,
I installed the ZIP file and imported it to eclipse, while running the application I have this run time error:

E/AndroidRuntime(10051): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load sonic: findLibrary returned null

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.