Beispiel #1
0
 void load() {
   try {
     System.loadLibrary("opus_jni");
     super.load();
   } catch (Throwable e) {
     if (!Sipdroid.release) e.printStackTrace();
   }
 }
 SILK8() {
   CODEC_USER_NAME = "SILK";
   CODEC_NAME = "silk8";
   CODEC_DESCRIPTION = "6-20kbit";
   CODEC_NUMBER = 117;
   CODEC_DEFAULT_SETTING = "always";
   super.update();
 }
 void load() {
   try {
     //			System.loadLibrary("silkcommon");
     System.loadLibrary("silk8_jni");
     super.load();
   } catch (Throwable e) {
     if (!Sipdroid.release) e.printStackTrace();
   }
 }
Beispiel #4
0
 public Opus() {
   CODEC_NAME = "Opus";
   CODEC_USER_NAME = "opus";
   CODEC_NUMBER = 107;
   CODEC_DEFAULT_SETTING = "always";
   if (RtpStreamSender.isSupportedSampRate(SAMPLING_RATE_48)) {
     setSampleRate(SAMPLING_RATE_48);
   } else {
     setSampleRate(SAMPLING_RATE_16);
   }
   super.update();
 }
Beispiel #5
0
 @Override
 public void configureFromString(String config) throws InvalidParameterException {
   super.configureFromString(config);
   try {
     currMode = getMode(Integer.parseInt(KV.get("mode")));
     setFEC(Integer.parseInt(KV.get("fec")) == 1);
     setFrameSize(CODEC_FRAME_SIZE);
     setSampleRate(CODEC_SAMPLE_RATE);
   } catch (Exception e) {
     throw new InvalidParameterException("Invalid config: " + config);
   }
 }