code: public Frame process(Frame frame) {
      	count = frame.getLength() / 2;
          Frame res = Memory.allocate(count);
          
          byte[] data=frame.getData();
          byte[] resData=res.getData();
          
          for (i = 0,j = 0; i < count; i++,j++)
          	resData[i]=EncoderData.aLawCompressTable[data[j+1] & 0xff][data[j++] & 0xff];        	
          
          res.setOffset(0);
          res.setLength(count);
          res.setFormat(alaw);
          res.setTimestamp(frame.getTimestamp());
          res.setDuration(frame.getDuration());
          res.setEOM(frame.isEOM());
          res.setSequenceNumber(frame.getSequenceNumber());
  
          return res;
      }
docs: (Non Java-doc)
  
  @see org.mobicents.media.server.impl.jmf.dsp.Codec#process(Buffer).