文件名称:G.711android.so JNI音频编解码库
文件大小:13KB
文件格式:SO
更新时间:2021-05-24 03:26:04
G.711
已经变异好的,用于将android采集的PCB音频编码成G.711 a/u law格式。 接口及用法: public class EncG711 { static { try { System.loadLibrary("G711Android"); } catch (UnsatisfiedLinkError ule){ System.out.println("loadLibrary(G711Android),"+ule.getMessage()); } } private static native int linear2ulaw( int pcm_val); private static native int linear2alaw(int pcm_val); public static native int EnCodeG711A(byte[] indata, int nIn, byte[] outdata, int[] nOut); public static native int EncodeG711U(byte[] indata, int nIn, byte[] outdata, int[] nOut); }