Class g722

java.lang.Object
javaforce.voip.g722
All Implemented Interfaces:
Coder

public class g722 extends Object implements Coder
G.722 codec Derived from Asterisk source code. NOTE : Although g722 is 16000Hz the SDP should state it's 8000Hz. This was a bug in RFC 1890 (clarified in RFC 3551)
Author:
pquiring Created : July 5, 2014
  • Constructor Details

    • g722

      public g722(RTP rtp)
  • Method Details

    • encode

      public byte[] encode(short[] src16)
      Specified by:
      encode in interface Coder
    • decode

      public short[] decode(byte[] src8, int off)
      Specified by:
      decode in interface Coder
    • getSampleRate

      public int getSampleRate()
      Specified by:
      getSampleRate in interface Coder