Add a Opus decoder JNI library. Write an audio depacketizer. Audio works!

This commit is contained in:
Cameron Gutman
2013-11-10 03:27:21 -05:00
parent 33c63a3bb8
commit 62a9040cb8
16 changed files with 3064 additions and 27 deletions

View File

@@ -0,0 +1,14 @@
package com.limelight.nvstream.av.audio;
public class OpusDecoder {
static {
System.loadLibrary("nv_opus_dec");
}
public static native int init();
public static native void destroy();
public static native int getChannelCount();
public static native int getMaxOutputShorts();
public static native int getSampleRate();
public static native int decode(byte[] indata, int inoff, int inlen, short[] outpcmdata);
}