Android多媒體音頻開發中,怎么將音頻的編碼格式將PCM轉成ADPCM呢?或者這兩種格式應該怎么互轉呢?
1 回答

Linda_Je
TA貢獻35條經驗 獲得超86個贊
Adpcm2PcmInterface.java
package com.adpcm2pcm;
public class Adpcm2PcmInterface {
??? public static native void Adpcm2Pcm(byte[] data, int size, int sample, int index, byte[] output);
??? public static native void Pcm2Adpcm(byte[] data, int size, int sample, int index, byte[] output);
??? static {
??? ??? try {
??? ??? ??? System.loadLibrary("adpcm2pcm");
??? ??? } catch (Exception e) {
??? ??? ??? e.printStackTrace();
??? ??? }
??? }
}
點擊展開后面3條
添加回答
舉報
0/150
提交
取消