mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-07 16:36:27 +00:00
Add a Opus decoder JNI library. Write an audio depacketizer. Audio works!
This commit is contained in:
14
src/com/limelight/nvstream/av/audio/OpusDecoder.java
Normal file
14
src/com/limelight/nvstream/av/audio/OpusDecoder.java
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user