com.arunta.base.audio.codec
Class ALawEncoder

java.lang.Object
  extended by com.arunta.base.audio.codec.ALawEncoder
All Implemented Interfaces:
Encoder

public class ALawEncoder
extends java.lang.Object
implements Encoder

G.711 A-Law encoder.


Constructor Summary
ALawEncoder()
           
 
Method Summary
 int encode(byte[] source, int sourceOffset, int samplesCnt, byte[] target, int targetOffset)
           
 float getCompressionFactor()
           
 int getFrameBytes()
           
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ALawEncoder

public ALawEncoder()
Method Detail

encode

public int encode(byte[] source,
                  int sourceOffset,
                  int samplesCnt,
                  byte[] target,
                  int targetOffset)
Specified by:
encode in interface Encoder

getCompressionFactor

public float getCompressionFactor()
Specified by:
getCompressionFactor in interface Encoder

getFrameBytes

public int getFrameBytes()
Specified by:
getFrameBytes in interface Encoder

getName

public java.lang.String getName()
Specified by:
getName in interface Encoder


Copyright ©, 2005-2012 Prolancer Pty Ltd, Sydney Australia.