title: How do I use Android OpenCORE codecs using JNI?
body: <p>I want to use the codecs in Android from my application. For now I just want to use the H.264 codec for testing, unless the mp3 or aac codecs provide functions for sending the audio to the device's speaker in which case I would prefer one of those.</p>
  
  <p>I have the NDK installed along with Cygwin, GNU Make, and GNU Awk. I can't figure out what I need to do from here though. I'm downloading the <a href="http://android.git.kernel.org/?p=platform/external/opencore.git;a=summary" rel="nofollow noreferrer">entire OpenCORE tree</a> right now but I don't even know how to build it or make Eclipse plugin know it needs to include the files.</p>
  
  <p>An example or a tutorial would be much appreciated.</p>
  
  <p><em>EDIT:</em></p>
  
  <p>It looks like I can use JNI like P/Invoke which would mean I don't have to build the OpenCORE libraries myself. However, I can't find any documentation on the names of the libraries I need to load. </p>
  
  <p>I'm also confused as to how to do it. I'm looking at <a href="http://www.koushikdutta.com/2009/01/jni-in-android-and-foreword-of-why-jni.html" rel="nofollow noreferrer">http://www.koushikdutta.com/2009/01/jni-in-android-and-foreword-of-why-jni.html</a> and I don't understand what the purpose of writing a library to access a library is. Couldn't you just use something like System.loadLibrary("opencore.so")?</p>