Exemple #1
0
 private void register() {
   myServ.config = new ConfigParameters();
   myServ.config.put("codec", CODEC.toString());
   myServ.config.put("sample-rate", audioConf.sampleRate);
   myServ.config.put("frame-size", audioConf.frameSize);
   byte[] cb = audioRec.getConfigBytes();
   if (cb != null) {
     myServ.config.put("config-bytes", cb);
   }
   myId = airtube.registerService(myServ, this);
   LOG.info("registered myself as " + myId);
 }