|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSciLib.SP.muLawCodec
public final class muLawCodec
This class contains some useful methods to handle audio file.
| Constructor Summary | |
|---|---|
muLawCodec()
|
|
| Method Summary | |
|---|---|
static vector |
decodeMuLaw(byteVector s)
Decode a mu-law vector |
static byteVector |
muLawCode(double[] s)
Produce mu-law encoded audio samples from an linerly encoded array of 64 bit signed signed floating point numbers ranged from -1 to 1 |
static byteVector |
muLawCode(short[] s)
Produce mu-law encoded audio samples from an linerly encoded array of 16 bit signed integers |
static double |
mulawToDouble(byte s)
Convert a byte s in the muLawCode to a double |
static int |
mulawToLinear(byte s)
Convert a byte s in the muLawCode to an integer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public muLawCodec()
| Method Detail |
|---|
public static byteVector muLawCode(short[] s)
s - the signal array
public static byteVector muLawCode(double[] s)
s - the signal array
public static double mulawToDouble(byte s)
s - A byte
public static int mulawToLinear(byte s)
s - A byte
public static vector decodeMuLaw(byteVector s)
s - the mu-law byteVector
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||